#22172 [Fbk->Opn]: Error parsing POST data

From: Date: Tue, 11 Feb 2003 22:53:08 +0000
Subject: #22172 [Fbk->Opn]: Error parsing POST data
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32834@lists.php.net to get a copy of this message
ID: 22172 User updated by: pete@mdsc.com Reported By: pete@mdsc.com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: Red Hat 8.0 i386 PHP Version: 4.3.0 New Comment: I removed an AddType application/x-httpd-php directive from my httpd.conf, leaving the Add[Input|Output]Filter directives, and the problem disappears. Previous Comments: ------------------------------------------------------------------------ [2003-02-11 15:03:28] moriyoshi@php.net Please try the solution mentioned in bug #18648. ------------------------------------------------------------------------ [2003-02-11 12:37:14] pete@mdsc.com 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

« previous php.bugs (#32834) next »