How do I use an image to submit a form?

To submit a form normally you would use an INPUT with type="submit". This creates a button that can be used to submit a form. But it might be look better if you could use your own image instead of the dull grey button. This can easily be accomplished by using an INPUT with type="image" :

<INPUT type="image" src="submit.gif" border="0">

Test field
In Netscape Navigator there will be no hint to the user that the image is a button, so make it clear that it represents something that asks for it to be clicked.

Back to the FAQ main page

  Copyright © 1996 - 1999 Rob Schlüter,   (last updated 1999/03/01)