|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-11 15:03 UTC] moriyoshi@php.net
[2003-02-11 16:53 UTC] pete at mdsc dot com
[2003-02-11 17:03 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 19:00:01 2025 UTC |
PHP 4.3 seems to be incorrectly interpreting POST data, try the script below. This is under Apache 2.0.40 as provided by Red Hat. <html> <head> <title>Form Test</title> </head> <body> <p><pre><?php print_r($_REQUEST); ?></pre></p> <form method="post"> <div> <input type="checkbox" name="test[]" value="One" /> One<br /> <input type="checkbox" name="test[]" value="Two" /> Two<br /> <input type="checkbox" name="test[]" value="Three" /> Three<br /> <input type="submit" name="submit" value="Submit" /> </div> </form> </body> </html> Choose all three checkboxes, and submit. This is what I get: Array ( [submit] => Submit [test] => Array ( [0] => One [1] => Two [2] => Three [3] => Two [4] => Three ) )