Re: Parsing AJAX post data -- The Way
| From: | Roman Neuhauser | Date: | Thu, 25 Jan 2007 08:48:50 +0000 |
| Subject: | Re: Parsing AJAX post data -- The Way | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247765@lists.php.net to get a copy of this message | ||
# m5@renefournier.com / 2007-01-24 23:41:19 -0700:
> 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.
Are you looking for http://php.net/manual/en/ref.json.php ?
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991