Re: Handeling POST without proper name/value

From: Date: Sat, 09 Dec 2000 09:54:59 +0000
Subject: Re: Handeling POST without proper name/value
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-29472@lists.php.net to get a copy of this message
That's the problem, the only variable that has part of the data is the one described below ('$<TESTING_value_1' or '$HTTP_POST_VARS["<TESTING_value_1"]'). The only other think I can do is traverse the $HTTP_POST_VARS and combine the key and value to form the actual value that MM sent me. However this is a very ugly way of doing things, I was just hoping that someone might be able to send me in a new direction. -- Mike Moulton Richard Lynch wrote: > > 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 > > > > -- > 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

« previous php.general (#29472) next »