php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7101 Form Select Multiple into PHP Array: works only one time per HTML form
Submitted: 2000-10-09 13:16 UTC Modified: 2000-10-09 14:34 UTC
From: gsc at arf dot fak12 dot uni-muenchen dot de Assigned:
Status: Closed Package: *General Issues
PHP Version: 3.0.13 OS: Solaris 7
Private report: No CVE-ID: None
 [2000-10-09 13:16 UTC] gsc at arf dot fak12 dot uni-muenchen dot 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-09 14:34 UTC] gsc at arf dot fak12 dot uni-muenchen dot de
Checked it again, and it works now.
No action has to be taken.
Sorry for the trouble.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC