Re: Problem receiving POSTed data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am working on #2 right now...

On 10/6/06, Richard Lynch <ceo@xxxxxxxxx> wrote:

On Fri, October 6, 2006 4:01 pm, Andy Hultgren wrote:
> /*************************************/
> $data = $_POST;
> $stuff = "\n \n Post contains:";
>
> foreach($data as $prop => $val) {
>      $stuff .= "\n {$prop}: {$val}";
> }
> /*************************************/

<pre><?php var_dump($_POST);?></pre>

PHP does pretty minimal munging of the POST data.

It's unlikely that Flash is sending what you think it's sending.

Even if it is, you have two options:

1. Use HTTP_RAW_POST_DATA (turn it on in PHP) and write your own Flash
array parser in PHP.

2. Convince Flash to POST data more like PHP wants it:
id[a][prop1]=a1&id[a][prop2]=a2&id[b][prop1]=b1...

#2 will probably be WAY easier, unless Flash is even more broken than
I think.  And I think Flash is pretty broken. :-)

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux