ID: 24246 Updated by: [EMAIL PROTECTED] Reported By: sdrost at graebel dot com -Status: Open +Status: Bogus Bug Type: CGI related Operating System: Windows 98 PHP Version: 4.3.1 New Comment:
This is expected behavior, see: http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple However, rumor has it that parse_url() will be given the ability to parse same name variables into an array... Previous Comments: ------------------------------------------------------------------------ [2003-06-18 10:23:47] sdrost at graebel dot com 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 this bug report at http://bugs.php.net/?id=24246&edit=1