#22172 [Opn->Bgs]: Error parsing POST data
| From: | iliaa@php.net | Date: | Tue, 11 Feb 2003 23:03:54 +0000 |
| Subject: | #22172 [Opn->Bgs]: Error parsing POST data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32837@lists.php.net to get a copy of this message | ||
ID: 22172
Updated by: iliaa@php.net
Reported By: pete@mdsc.com
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: Red Hat 8.0 i386
PHP Version: 4.3.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
The problem was the result of a misconfigured Apache 2, not a PHP bug.
Previous Comments:
------------------------------------------------------------------------
[2003-02-11 16:53:07] pete@mdsc.com
I removed an AddType application/x-httpd-php directive from my
httpd.conf, leaving the Add[Input|Output]Filter directives, and the
problem disappears.
------------------------------------------------------------------------
[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