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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: szabo_a at interware dot hu
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 13:01:28 2025 UTC