Tuesday, 23 September 2008 11:39

How to replace the "submit" button with an image

To make your subscribe forms or enquiry forms a bit more graphical you can simply change one line of code to use an image instead of the default style button.

  1. Find: <input type="submit" value="Submit" />
  2. Replace with: <input border="0" src="/images/submit.jpg" type="image" value="Submit" />

 

Definitions: src = source url of the image
border = this gets rid of the blue link border around the image
value = calls the action of processing the form

Leave a comment

We proof all comments before publishing.