Strange x & y POST values ​​are sent in the form

What are these x and y values ​​that are sent back with seemingly random values? After submitting my form, I output the _POST array using print_r () to make sure my form is submitted correctly.

Array ( 
[user] => Richard Testani 
[pass] => sdf 
[client] => Kim Ronemus Design 
[api] => 3425yrt 
[email] => rich@kimronemusdesign.com 
[x] => 88 
[y] => 34 

)

I saw this in other forms, but simply ignored them. Im right now on a Mac 10.5 platform by running PHP5

Thanks rich

+5
source share
3 answers

If your element inputhas an element type="image"(or buttoncontaining image), then the click coordinates will be sent, cf. specification .

name="something", $_POST something, something_x something_y.

+14

. , .

+1

if submit "button" is replaced with <input type="image" src="submit.png" />

+1
source

All Articles