From:             [EMAIL PROTECTED]
Operating system: RH 6.4
PHP version:      3.0.14
PHP Bug Type:     Scripting Engine problem
Bug description:  two dimensional array in POST doesn't work

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 

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.


Jaco Rietveld

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to