...

View Full Version : changing the default form submit button?



LJackson
05-26-2009, 01:02 PM
Hi All,

is it possible to change the default submit button on a form i have made a button which i would like to use in place of the standard button but im not sure how to do it?

here is my form element

<input type="submit" name="submit" id="submit" value="Submit" />

which gives me the grey button

and here is the link to my button which i'd like to use instead


<img src="/images/gobutton.png" />

can i use that instead?

thanks
Luke

abduraooft
05-26-2009, 01:31 PM
Use type="image", see http://www.w3schools.com/TAGS/att_input_type.asp

frankle
05-28-2009, 04:30 AM
Hi All,

is it possible to change the default submit button on a form i have made a button which i would like to use in place of the standard button but im not sure how to do it?

here is my form element

<input type="submit" name="submit" id="submit" value="Submit" />

which gives me the grey button

and here is the link to my button which i'd like to use instead


<img src="/images/gobutton.png" />

can i use that instead?

thanks
Luke

Use the code below:

<input type="image" name="submit" src="/images/gobutton.png" >



Regards.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum