HTML sends xy POST data without input - how is this possible?

I am trying to register using php curl.

I use LiveHTTPHeaders to see which headers are sent.

When I log in through the form, it submits

action=autorize&login=myname&pass=mypass&x=14&y=10 

I see action , login , pass <inputs> .
The problem is that there are no inputs x and y . And they are random all the time. I searched all the html, but there are no x, y or their numbers.

How is this even possible?

+4
source share
3 answers

Inputs x and y are taken from image input. From W3C:

The INPUT element of type "TYPE = IMAGE" sets the image resource for display and allows you to enter two forms of the field: the x coordinate and the y pixel selected from the image. Field Names - This is the name of the field with '.x' and '.y' added. 'TYPE = IMAGE' means 'TYPE = SUBMIT' processing; that is, when a pixel is selected, the shape as a whole is presented.

http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.1.2.5

+7
source

You use the image as a button. These are copied coordinates.

+3
source

It comes from the input type = "image", it automatically sends the x and y coordinates that you clicked on the submit button.

+1
source

All Articles