Re: Problem receiving POSTed data

From: Date: Fri, 06 Oct 2006 21:35:21 +0000
Subject: Re: Problem receiving POSTed data
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-242792@lists.php.net to get a copy of this message
Am working on #2 right now... On 10/6/06, Richard Lynch <ceo@l-i-e.com> 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?


« previous php.general (#242792) next »