ID:               42162
 Updated by:       [EMAIL PROTECTED]
 Reported By:      xoneca+php at gmail dot com
-Status:           Open
+Status:           Verified
 Bug Type:         Scripting Engine problem
 Operating System: Windows XP SP2
 PHP Version:      5.2.3


Previous Comments:
------------------------------------------------------------------------

[2007-08-31 16:50:50] xoneca+php at gmail dot com

It happens in both FF2 and IE7.

------------------------------------------------------------------------

[2007-08-12 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2007-08-04 14:28:51] [EMAIL PROTECTED]

Does it happen with any browser? f.e. Firefox? 

------------------------------------------------------------------------

[2007-08-01 11:29:10] xoneca+php at gmail dot com

I said that submiting a form with an image like this (note the 2nd
index set in the name attribute):

  <input type="image" src="image.png" name="image[2]" />

PHP will create:

array(1) {
  ["image"]=>
  array(1) {
    [2]=>
    string(2) "45"
  }
}

Where 45 is the Y coordinate, but PHP forgets to store also the X
coordinate as expected:

array(1) {
  ["image"]=>
  array(2) {
    [0]=>
    string(2) "45"
    [1]=>
    string(2) "32"
  }
}

But this one (note the index not set in the name attribute):

  <input type="image" src="image.png" name="image[]" />

Will create:

array(1) {
  ["image"]=>
  array(2) {
    [0]=>
    string(2) "59"
    [1]=>
    string(2) "22"
  }
}

Where 59 is the X coordinate and 22 the Y one.

------------------------------------------------------------------------

[2007-08-01 10:50:15] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




------------------------------------------------------------------------

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

Reply via email to