ID: 21441 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Apache2 related Operating System: RH 8.0 Apache 2.0 PHP Version: 4.2.2 New Comment:
i use the current releas version -> 4.3.0 on redhat-8.0 with apache 2.0.43 and get the same error. - <input name=\"szuk\" type=\"text\" id=\"szuk\"> - input string>tralalala $HTTP_POST_VARS['szuk'] tralalalaszuk=tralalalala Previous Comments: ------------------------------------------------------------------------ [2003-01-06 12:11:11] [EMAIL PROTECTED] Hi, i use the current releas version -> 4.3.0 on redhat-8.0 with apache 2.0.43 and get the same error. here is another example <?php echo "<pre>\$_POST "; print_r($_POST); echo "\n\$_GET "; print_r($_GET); echo "</pre>"; ?> <hr> <form name="frmTest" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <input type="checkbox" name="chkTest[]" value="chbox 1">chbox 1<br /> <input type="checkbox" name="chkTest[]" value="chbox 2">chbox 2<br /> <input type="checkbox" name="chkTest[]" value="chbox 3">chbox 3<br /> <input type="checkbox" name="chkTest[]" value="chbox 4">chbox 4<br /> <input type="checkbox" name="chkTest[]" value="chbox 5">chbox 5<br /><br /> <input type="submit" name="submit" value="submit"> </form> output (all checkboxes selected): $_POST Array ( [chkTest] => Array ( [0] => chbox 1 [1] => chbox 2 [2] => chbox 3 [3] => chbox 4 [4] => chbox 5 [5] => chbox 2 [6] => chbox 3 [7] => chbox 4 [8] => chbox 5 ) [submit] => submit ) $_GET Array ( ) When I replace the POST wit GET it works fine. cya later /Stephan ------------------------------------------------------------------------ [2003-01-05 16:44:45] [EMAIL PROTECTED] Reclassified ------------------------------------------------------------------------ [2003-01-05 14:51:42] [EMAIL PROTECTED] Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php ------------------------------------------------------------------------ [2003-01-05 14:49:13] [EMAIL PROTECTED] Here some_arr[] has two values, but after POST-ing the resulting array seems like it is repeating itself. Example: <!-- input --> <form method="post"> <input type="checkbox" name="some_arr[]" value="aa" CHECKED> <input type="checkbox" name="some_arr[]" value="bb" CHECKED> <input type="submit"> </form> <!-- result after post --> var_dump($some_arr): array(3) { [0]=> string(2) "aa" [1]=> string(15) "bbsome_arr[]=aa" [2]=> string(2) "bb" } When I replace the POST wit GET it works fine. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21441&edit=1