#42162 [Opn->Bgs]: The x coordinate disappears from form request
| From: | bjori@php.net | Date: | Sun, 02 Sep 2007 20:58:51 +0000 |
| Subject: | #42162 [Opn->Bgs]: The x coordinate disappears from form request | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116979@lists.php.net to get a copy of this message | ||
ID: 42162
Updated by: bjori@php.net
Reported By: xoneca+php at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows XP SP2
PHP Version: 5.2.3
New Comment:
<input type="image" name="image[key]" /> gets translated into
?image[key].x=foo&image[key].y=bar
PHP has no idea what to do with "image[key].x" so the ".x" is stripped
away and the "image" array created with the index "key".
Then PHP tries to parse "image[key].y"... strips the ".y" away and
overwrites the the previous array index named "key".
If you really want the coordinates into an array you can use
name="image[key][]" which will create your "expected result" array.
I however do not recommend it...
Previous Comments:
------------------------------------------------------------------------
[2007-09-02 20:15:13] xoneca+php at gmail dot com
I am using PHP as Apache module, and this also happens with PHP 5.2.4
------------------------------------------------------------------------
[2007-09-02 20:07:58] jani@php.net
And does this happen with PHP 5.2.4?
------------------------------------------------------------------------
[2007-09-02 20:07:42] jani@php.net
What SAPI are you using (CGI, Apache, something else) ??
------------------------------------------------------------------------
[2007-08-31 16:50:50] xoneca+php at gmail dot com
It happens in both FF2 and IE7.
------------------------------------------------------------------------
[2007-08-04 14:28:51] jani@php.net
Does it happen with any browser? f.e. Firefox?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/42162
--
Edit this bug report at http://bugs.php.net/?id=42162&edit=1