[PHP-DEV] Bug #7101: Form Select Multiple into PHP Array: works only one time per HTML form From: gsc <email protected>
Date: 10/09/00

From: gsc <email protected>
Operating system: Solaris 7
PHP version: 3.0.13
PHP Bug Type: Misbehaving function
Bug description: Form Select Multiple into PHP Array: works only one time per HTML form

Using the following construct works fine with PHP3. The selected values are retrievable as A[0], A[1], ...

<select multiple name="A[]" size=4>
...
</select>

But if I use more than one multiple select in the same form, say add the following lines

<select multiple name="B[]" size=4>
...
</select>

I found that PHP3 would fill only one array with selected values. In the case with two multiple selects as above, only the latter variable name is set with the selected values B[0], B[1], ..., but the first variable A, A[], A[0], A[1], ..., is not set at all.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>