ID: 22172 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: Red Hat 8.0 i386 PHP Version: 4.3.0 New Comment:
Please try the solution mentioned in bug #18648. Previous Comments: ------------------------------------------------------------------------ [2003-02-11 12:37:14] [EMAIL PROTECTED] 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 ) ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22172&edit=1