#21441 [Opn->Csd]: POST-ed array repeats itself

From: Date: Sun, 05 Jan 2003 20:51:50 +0000
Subject: #21441 [Opn->Csd]: POST-ed array repeats itself
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29137@lists.php.net to get a copy of this message
ID: 21441 Updated by: derick@php.net Reported By: szabo_a@interware.hu -Status: Open +Status: Closed Bug Type: Arrays related Operating System: RH 8.0 Apache 2.0 PHP Version: 4.2.2 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2003-01-05 14:49:13] szabo_a@interware.hu 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

« previous php.bugs (#29137) next »