Bug #7101: Form Select Multiple into PHP Array: works only one time per HTML form

From: Date: Mon, 09 Oct 2000 17:16:13 +0000
Subject: Bug #7101: 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-34511@lists.php.net to get a copy of this message
From: gsc@arf.fak12.uni-muenchen.de 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.

« previous php.dev (#34511) next »