php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21441 POST-ed array repeats itself
Submitted: 2003-01-05 14:49 UTC Modified: 2003-01-21 03:37 UTC
From: szabo_a at interware dot hu Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4CVS-2003-01-20 (stable) OS: RH 8.0 Apache 2.0
Private report: No CVE-ID: None
 [2003-01-05 14:49 UTC] szabo_a at interware dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-21 03:34 UTC] moriyoshi@php.net
Excuse me, but this report is actually the dupe of bug #18648.
Could you report the further info at that page?
We're investigating this issue now.

Moriyoshi

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC