This is not a bug.  Your syntax is wrong.  It should be:

fields[tech_id][]

-Rasmus

On 4 Sep 2002, Xavier Spriet wrote:

> Hi Guys,
>
> I don't know exactly when you plan to release PHP 4.2.3 as a final
> release but I believe I just found a bug that I haven't seen reported on
> bugs.php.net or in any of the php-dev threads, unfortunately, I will not
> be able to confirm this bug until friday night, time at which I will
> recompile our development server.
>
> The bug concerns passing multi-dimensional arrays in $_POST via
> form/POST, there is an obvious parsing error on my 4.2.3RC1 that makes
> it impossible to pass it a multi-dimensional array.
>
> e.g.
> <select name="fields[tech_id[]]" multiple size=3>
>       <option value="test">test</option>
>       <option value="Adam">Adam</option>
>       <option value="Eric">Eric</option>
>       <option value="Marc">Marc</option>
>       <option value="Drew">Drew</option>
>
>       <option value="Doug">Doug</option>
>       <option value="Xavier">Xavier</option>
> </select>
> This should give us $_POST[fields[tech_id[0]]], 1, 2, 3, etc...
> in fact, here is what it gives me:
>    ["tech_id["]=>
>     string(4) "Doug"
>
> Thanks,
>
> Xavier Spriet.
> [EMAIL PROTECTED]
> (519)-945-2032 Ext. 233
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to