Parsing AJAX post data -- The Way
| From: | M5 | Date: | Thu, 25 Jan 2007 06:41:19 +0000 |
| Subject: | Parsing AJAX post data -- The Way | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-247759@lists.php.net to get a copy of this message | ||
Just wondering what smart people do for parsing data sent by the Javascript XMLHTTP object--e.g., http.send("post",url,true)...
In a normal form submit, the $_POST global nicely allocates form elements as array elements automatically. But with the AJAX way, the data get stuffed inside $HTTP_RAW_POST_DATA as a string, thereby making extraction more tedious.
Any ideas?
...Rene