#27330 [NEW]: indexed input type image problem - engine returns array only with "Y" value.
| From: | shoorik at ilyichevsk dot net | Date: | Fri, 20 Feb 2004 13:26:43 +0000 |
| Subject: | #27330 [NEW]: indexed input type image problem - engine returns array only with "Y" value. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-55236@lists.php.net to get a copy of this message | ||
From: shoorik at ilyichevsk dot net
Operating system: ASP Linux 2.6.3 i686
PHP version: 4.3.4
PHP Bug Type: Scripting Engine problem
Bug description: indexed input type image problem - engine returns array only with "Y"
value.
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"
}
}
--
Edit bug report at http://bugs.php.net/?id=27330&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27330&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27330&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27330&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27330&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27330&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27330&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27330&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27330&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27330&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27330&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27330&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27330&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27330&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27330&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27330&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27330&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27330&r=float