PHP 4.0 Bug #7101 Updated: Form Select Multiple into PHP Array: works only one time per HTML form
| From: | Bug Database | Date: | Mon, 09 Oct 2000 18:34:13 +0000 |
| Subject: | PHP 4.0 Bug #7101 Updated: Form Select Multiple into PHP Array: works only one time per HTML form | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34514@lists.php.net to get a copy of this message | ||
ID: 7101
User Update by: gsc@arf.fak12.uni-muenchen.de
Old-Status: Open
Status: Closed
Old-Bug Type: Misbehaving function
Bug Type: *General Issues
Description: Form Select Multiple into PHP Array: works only one time per HTML form
Checked it again, and it works now.
No action has to be taken.
Sorry for the trouble.
Previous Comments:
---------------------------------------------------------------------------
[2000-10-09 13:16:13] gsc@arf.fak12.uni-muenchen.de
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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7101