[X]

INPUT TYPE=IMAGE

forms and protocols 1995 still works

A submit button that is a picture, and quietly sends the click coordinates too.

In 2026: Still standard and still works. The surprise is the payload: it submits name.x and name.y rather than name and value, which broke a great many server scripts that expected a plain button.

Where it came from: HTML 2.0 (RFC 1866), 1995. MDN

<form action="/cgi-bin/search.pl" method="get">
  <input type="text" name="q" size="20">
  <input type="image" src="https://xbawx.com/inc/img/demo/go.gif" name="go" border="0" width="40" height="20"
         alt="Search">
</form>

<!-- What the server actually receives -->
<!--   q=cats&go.x=17&go.y=9                                     -->
<!--   Note: no "go" parameter at all, which surprised everybody. -->

<!-- The 2026 version, if you just want a styled submit -->
<button type="submit"><img src="https://xbawx.com/inc/img/demo/go.gif" alt="Search"></button>
sandboxed demo · breaks nothing but itselfrestart

More in forms and protocols

all 6 in forms and protocols › · the whole library ›