#21441 [NEW]: POST-ed array repeats itself

From: Date: Sun, 05 Jan 2003 20:49:13 +0000
Subject: #21441 [NEW]: POST-ed array repeats itself
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29136@lists.php.net to get a copy of this message
From: szabo_a@interware.hu Operating system: RH 8.0 Apache 2.0 PHP version: 4.2.2 PHP Bug Type: Arrays related Bug description: POST-ed array repeats itself 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 bug report at http://bugs.php.net/?id=21441&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21441&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21441&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21441&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21441&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21441&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21441&r=support Expected behavior: http://bugs.php.net/fix.php?id=21441&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21441&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21441&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21441&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21441&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21441&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21441&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21441&r=gnused

« previous php.bugs (#29136) next »