Re: Handeling POST without proper name/value
| From: | Richard Lynch | Date: | Sat, 09 Dec 2000 04:06:34 +0000 |
| Subject: | Re: Handeling POST without proper name/value | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29450@lists.php.net to get a copy of this message | ||
Look at phpinfo() in the receiving script of the MM link for a variable that
has the data you want.
Probably $POST_INFO, but maybe something else.
----- Original Message -----
From: Mike Moulton <mike@meltmedia.com>
Newsgroups: php.general
Sent: Thursday, December 07, 2000 10:59 PM
Subject: [PHP] Handeling POST without proper name/value
> I am trying to get Macromedia Flash 5 to talk to PHP using a method
> predefined in flash's action script called XML.send. What it does is
> take an XML object that you created and sends it to a script via a POST
> method, however MM in all of there wisdom don't assign a name to the
> value. What PHP does when it encounters this is try to parse it like a
> normal name=value POST. So if flash sends an XML doc that looks like
> this:
>
> <TESTING value_1="This is a test" value_2="1" />
>
> PHP thinks the name is : <TESTING_value_1
> and the value is: "This is a test" value_2="1" />
>
> Is there any way of manually assigning this value to a variable. I have
> tried something like this without any luck:
>
> $fd = fopen ("php://stdin", "r");
> $val = fread ($fd, $HTTP_SERVER_VARS["CONTENT_LENGTH"]);
> fclose ($fd);
>
> I would greatly appreciate any help that can be offered. Thanks in
> advance!
>
> Setup:
> PHP: 4.0.3pl1
> Apache: 1.3.9
>
> -- Mike Moulton
> -- mike@meltmedia.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>