|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-06-18 11:40 UTC] philip@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 14:00:01 2025 UTC | 
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" }