php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27330 indexed input type image problem - engine returns array only with "Y" value.
Submitted: 2004-02-20 08:26 UTC Modified: 2004-02-20 16:20 UTC
Votes:3
Avg. Score:2.0 ± 1.4
Reproduced:2 of 3 (66.7%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: shoorik at ilyichevsk dot net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.4 OS: ASP Linux 2.6.3 i686
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: shoorik at ilyichevsk dot net
New email:
PHP Version: OS:

 

 [2004-02-20 08:26 UTC] shoorik at ilyichevsk dot net
Description:
------------
Just try code reproduced here. Indexed input type image returns only "Y" value in "string" but not "array" with "X" and "Y".


Reproduce code:
---------------
<form method=get>
BUG - <input type="image" src="image.gif" name="submit[4]"><br>
OK - <input type="image" src="image.gif" name="submit_auto_index[]"><br>
OK - <input type="image" src="image.gif" name="submit_single"><br>
</form>
<pre>
<?
        var_dump( $_REQUEST );
?>
</pre>


Expected result:
----------------
array(1) {
  ["submit"]=>
  array(1) {
    [4]=>
    array(2) {
     [0]=>
     string(1) "9"
     [1]=>
     string(2) "13"
    }
  }
}

Actual result:
--------------
array(1) {
  ["submit"]=>
  array(1) {
    [4]=>
    string(2) "13"
  }
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-20 16:20 UTC] sniper@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is not any bug.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Apr 21 01:01:26 2025 UTC