|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24246 Missing $_GET variables
Submitted: 2003-06-18 10:23 UTC Modified: 2003-06-18 11:40 UTC
From: sdrost at graebel dot com Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.3.1 OS: Windows 98
Private report: No CVE-ID: None
 [2003-06-18 10:23 UTC] sdrost at graebel dot com
When using the GET method from a form, if you have a SELECT type input that can multi select, only one selection gets inserted into the $_GET array.

try this:

Reproduce code:
<TITLE>GET Method Echo page</TITLE>
printf ("%s<BR>\n<HR>\n", getenv("HTTP_REFERER"));

var_dump ($_GET);
$a = explode("&",$_ENV["QUERY_STRING"]);
var_dump ($a);

Expected result:
array(4) {
  string(2) "PK"
  string(4) "TUTR"
  string(4) "TUWH"
  string(4) "BEPK"

Actual result:
array(2) {
  string(2) "PK"
  string(4) "BEPK"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-18 11:40 UTC]
This is expected behavior, see:

However, rumor has it that parse_url() will be given the ability to parse same name variables into an array...
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC