How to use an image as a submit button
Posted on September 24, 2008, under HTML & CSS,
Bookmark it
Greetings,
The classical submit buttons aren’t always the best choice for a form’s design. The need customized or replaced with images. In this short tutorial you will see how a submit button can be replaced with an image.
A standard submit button HTML Code will look something like this:
<input type="submit" name="submit" value="Submit">
Here’s a code that uses an image as a submit button:
<input type="image" src="http://www.yoursite.com/images/myimage.gif">
As you can see, the SRC attribute has been added containing the URL address of the image and the TYPE’s value was changed to ‘image’.

Good luck!
Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!
- September 24, 2008
- article by Gabriel C.
- 3 comments
Related Posts
-
Submit your Website to the Most Popular CSS galleries: MeeCSSat July 26, 2009
-
Validating an image uploadat September 8, 2008 with 4 comments
-
Encrypt the POST-GET Data when you Submit a Form: jCryptionat August 9, 2009

3 Replies to "How to use an image as a submit button"
July 15, 2009 at 11:03 PM
Thanks Gabriel, its suprisingly simple, i was expecting more.
I must admit the standard look button is very boring looking, its amazing how these little changes here and there can make a real difference overall.
July 15, 2009 at 11:31 PM
@Webhostright, at the time I wrote this post (last year) I was thinking that someone may need this, although it’s very simple.
January 18, 2011 at 12:01 AM
great. . . really great
but how with post or get method?