From:             sdrost at graebel dot com
Operating system: Windows 98
PHP version:      4.3.1
PHP Bug Type:     CGI related
Bug description:  Missing $_GET variables

Description:
------------
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:
echo.php?D1=PK&D2=TUTR&D2=TUWH&D2=BEPK

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

printf("<pre>");
var_dump ($_GET);
$a = explode("&",$_ENV["QUERY_STRING"]);
var_dump ($a);
printf("</pre>");
?>
</BODY>
</HTML>

Expected result:
----------------
array(4) {
  ["D1"]=>
  string(2) "PK"
  ["D2"]=>
  string(4) "TUTR"
  ["D2"]=>
  string(4) "TUWH"
  ["D2"]=>
  string(4) "BEPK"
}


Actual result:
--------------
array(2) {
  ["D1"]=>
  string(2) "PK"
  ["D2"]=>
  string(4) "BEPK"
}


-- 
Edit bug report at http://bugs.php.net/?id=24246&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24246&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24246&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24246&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24246&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24246&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24246&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24246&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24246&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24246&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24246&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24246&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24246&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24246&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24246&r=gnused

Reply via email to