Bug #11518 Updated: two dimensional array in POST doesn't work
| From: | rasmus@php.net | Date: | Tue, 19 Jun 2001 04:34:17 +0000 |
| Subject: | Bug #11518 Updated: two dimensional array in POST doesn't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57151@lists.php.net to get a copy of this message | ||
ID: 11518
Updated by: rasmus
Reported By: jaco.rietveld@ision.nl
Old-Status: Open
Status: Closed
Bug Type: Arrays related
Operating system:
PHP Version: 3.0.14
Assigned To:
Comments:
Upgrade to PHP 4 where this is supported.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-17 07:35:24] jaco.rietveld@ision.nl
I would like to use two dimensional array's in my html forms, so
$array["id1"]["id2"] becomes available in my script.
A 1 dimensional array with named entries works fine : include <INPUT type=text
name=array[id1]> in your html form and you get it's value in $array["id"] when
form is POSTed.
Next I tried putting <INPUT type=text name=array[id1][id2]> in the form. Now you don't
get the value in $array["id1"]["id2"] but instead the POSTed value is put in
$array["id1][id2"] - the array stays 1 dimensional witk key "id1][id2".
Maybe I am trying to abuse something here which might not even be efficient to do, but for my app
this feature would simplify things a little.
regards,
Jaco Rietveld
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11518&edit=2