Forum Moderators: open

Message Too Old, No Replies

Image as Button

Submit Button

         

Gian04

11:20 am on Mar 31, 2007 (gmt 0)

10+ Year Member



Please help me, is it possible to use an image as submit button in HTML Forms and how?

penders

3:20 pm on Mar 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<input type="image"...
creates a graphical submit button, as opposed to
<input type="submit"...
which just creates a regular submit button.

eg.

<input type="image" src="mybutton.gif" alt="Submit this form..." name="submitbtn" id="submitbtn">

Input control types...
[w3.org...]

coopster

4:35 pm on Apr 2, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



And don't forget that there may be a little quirk for certain browsers when you go to process the button on the server-side. Related threads:
IE and Image Submit Buttons [webmasterworld.com]
validate graphical submit button [webmasterworld.com]
Rewriting form action and target with OnClick [webmasterworld.com]