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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: flatline at mail dot tvnet dot hu
New email:
PHP Version: OS:

 

 [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: Thu Mar 28 16:01:29 2024 UTC