Form data
What does input type=image send when the form is submitted?
The browser submits the form like any other submit control. If the image input has a name, the activator adds **two** entries: name.x and name.y with the click coordinates in CSS pixels, (0,0) at the top-left of the image. Most browsers do **not** also send a plain name=value pair for the image button itself because image inputs do not use the value attribute.
| Situation | What the server receives |
|---|---|
User clicks at (48, 12) on name="submit" | submit.x=48 and submit.y=12 plus every other named field |
| Form submitted without a click on the image (Enter in a text field) | Coordinates default to 0 and 0 for that image submitter when it is treated as the submit button |
Image input has no name | Only the other fields; no coordinate pair |
JavaScript form.submit() | No submit-button data at all; use form.requestSubmit(imageInput) to include coordinates |
| GET method | Same keys appended to the query string, for example ?submit.x=48&submit.y=12 |
Sources: WHATWG HTML Standard: Image Button state · MDN: <input type="image">




