|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-10 20:18 UTC] sniper@php.net
[2003-09-11 07:25 UTC] fmuller at cisco dot com
[2003-09-23 09:31 UTC] sniper@php.net
[2003-09-23 09:33 UTC] moriyoshi@php.net
[2003-09-23 23:22 UTC] fmuller at cisco dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 16:00:01 2025 UTC |
Description: ------------ Red Hat 7.3/Apache 2.0/PHP 4.3.3. If I select multiple selections on a select box, with an array name, with a form method of post I do not get the array of selected values I expect. If one option is selected it works fine. If I use a method of get it works fine. Here is what phpinfo.php displays when I select 1 and 2: _REQUEST["param"] Array ( [0] => 1 [1] => 2param[]=1 [2] => 2 ) _POST["param"] Array ( [0] => 1 [1] => 2param[]=1 [2] => 2 ) Reproduce code: --------------- <html> <body> <form method=post action=phpinfo.php> <select name="param[]" multiple size=6> <option value=0>0</option> <option value=1>1</option> <option value=2>2</option> <option value=3>3</option> <option value=4>4</option> <option value=5>5</option> <option value=6>6</option> </select> <input type=submit> </form> </body> </html> ------------------ phpinfo.php <? phpinfo(); ?> Expected result: ---------------- _REQUEST["param"] Array ( [0] => 1 [1] => 2 ) _POST["param"] Array ( [0] => 1 [1] => 2 )