#22172 [Opn->Fbk]: Error parsing POST data
| From: | moriyoshi@php.net | Date: | Tue, 11 Feb 2003 21:03:29 +0000 |
| Subject: | #22172 [Opn->Fbk]: Error parsing POST data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32808@lists.php.net to get a copy of this message | ||
ID: 22172
Updated by: moriyoshi@php.net
Reported By: pete@mdsc.com
-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] 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