ID: 22172
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]
Please try the solution mentioned in bug #18648.
------------------------------------------------------------------------
[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