From:             [EMAIL PROTECTED]
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

Reply via email to