how to receive a xml string from post method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newlearner
    New Member
    • May 2007
    • 67

    #1

    how to receive a xml string from post method

    hi,
    I send a xml string thru ajax post method. Idont have any idea of how to receive it in the php file and update the places needed.

    If i assing it to a variable then i could make it thru _POST[varName]. But i send it as a xml string and would like to receive it as a xml string in php too. any idea of how to make this possible.


    Thanks in advance for the reply ... Looking forward.

    Also another doubut. If i need a conformation abt the updates taken plce in the page thru thru responseXML . do i need to use SOAP request or can it be attained without making any changes.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, newlearner.

    By default, $_POST['varName'] will be a string. To parse it like XML, check out PHP's XML parsing functions.

    Comment

    Working...