Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,045 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,527 people online right now. Registration is fast and FREE... Join Now!




Parse Xml From _post

 
Reply to this topicStart new topic

Parse Xml From _post

jaybee
18 Nov, 2002 - 03:04 AM
Post #1

New D.I.C Head
*

Joined: 30 Sep, 2002
Posts: 9

Hi, I am using the XML.sendAndLoad function in flash - this sends a request to my page of php with an xml doc in the _POST array and takes whatever response my php provides to be used in the movie...can anyone help me with parsing the xml in php? This is what arrives:

CODE

<account><userName>blah</userName><password>blah</password</account>


but it's not like a normal post cos I don't know what the variable is called...I then need to parse the contents, check them against my database (I'm OK with that bit!) and echo something like:
CODE

<result status="OK" />...more xml...

User is offlineProfile CardPM
+Quote Post

jaybee
RE: Parse Xml From _post
18 Nov, 2002 - 07:13 AM
Post #2

New D.I.C Head
*

Joined: 30 Sep, 2002
Posts: 9

don't panic Mr Mainwaring...I've found that the data is in $HTTP_RAW_POST_DATA and got some code from the manual to parse it...thx
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 04:56PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month