Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange x & y POST values being sent in form

Tags:

post

forms

php

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

Array ( 
[user] => Richard Testani 
[pass] => sdf 
[client] => Kim Ronemus Design 
[api] => 3425yrt 
[email] => [email protected] 
[x] => 88 
[y] => 34 

)

I've seen this in other forms, but just ignored them. Right now Im on a Mac platform 10.5, running PHP5

Thanks Rich

like image 816
Richard Testani Avatar asked Nov 25 '09 15:11

Richard Testani


2 Answers

If your input element is of type="image" (or a button element containing an image) then the coordinates of the click will be sent, cf. the specification.

EDIT If your input element had a name="something" the $_POST array would contain the keys something, something_x, and something_y.

like image 50
jensgram Avatar answered Oct 24 '22 17:10

jensgram


I had this problem. It happens because you are using an image as your submit button instead of a true submit button.

like image 1
ikkebr Avatar answered Oct 24 '22 19:10

ikkebr