php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11740 Multiple select gives back only the last selected option
Submitted: 2001-06-27 11:11 UTC Modified: 2001-06-27 11:43 UTC
From: flatline at mail dot tvnet dot hu Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.0.4pl1 OS: Debian 2.2.19 Potato
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 - 6 = ?
Subscribe to this entry?

 
 [2001-06-27 11:11 UTC] flatline at mail dot tvnet dot hu
Here is the form, with a multiple list:
------------------
<form name="form1" method="post" action="doit.php3">
  <select name="opciok" size="2" multiple>
    <option value="1">aaaaa</option>
    <option value="2">bbbbb</option>
    <option value="3">ccccc</option>
  </select>
  <input type="submit" name="Submit" value="Submit">
</form>

doit.php3:
-----------------
<?
echo $opciok; /* output: 3*/
/* It would be nice to use it as an array, to reach all the selected option values.

And I don't want to use the GET method, to parse the Query String.

*/
?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 11:43 UTC] sniper@php.net
submitted twice

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC