Re: Problem with hidden form input values

From: Date: Thu, 20 Jan 2005 20:05:15 +0000
Subject: Re: Problem with hidden form input values
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-206884@lists.php.net to get a copy of this message
On Friday 21 January 2005 03:20, Richard Lynch wrote: > >> The *do* POST, but PHP only handles one level of array references in > >> NAME=xxx [snip] > What you are receiving from HTTP/POST/PHP is the same as: > > $keyField['mb_memberhips][0'] = 'mb_e_id'; > > Note the lack of intervening apostrophes you expected: > $keyField['mb_memberhips']['0'] = 'mb_e_id'; > > PHP only parses POST data to *ONE* dimension. Richard, what ancient version of PHP are we talking about here? Something like: <input type="text" name="doo[dah][dee][dib][dab]" value="dub"> and print_r($_POST) Would result in: Array ( [doo] => Array ( [dah] => Array ( [dee] => Array ( [dib] => Array ( [dab] => dub ) ) ) ) ) Has worked for ages for me. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ New Year Resolution: Ignore top posted posts

« previous php.general (#206884) next »