Click to See Complete Forum and Search --> : Form Button thing


numba_one
08-15-2003, 01:11 AM
Hey i currently have an asp login system whatever, but what i want is instead of a normal "submit" button i would like an image. but for it to do the same thing...got any suggestions?
Heres what i got so far

<form method="POST" action="password.asp"><input type="image" src="images/butt_login.gif"></form>

that dosnt seem to work though... heres the original that came with the scripts for the login system:

<input type="submit" value="Submit" name="B1">

Heres what i got off another site that says this is the code for the image or whatever....

<form method="link" action="your url here"><input type="image" src="your file name.gif" width="26" height="26"</form>

problem is that i dont want a "link" i want it to submit... if you could help me out that would be great. Thanks

Charles
08-15-2003, 05:44 AM
I've seen something like that over at the HTML Goodies site and pretty much everything there is wrong.

There are two ways to use an image as a submit button.

<input alt="Submit" src="someImage.png" type="image">

and

<button type="submit"><img alt="Submit" src="someImage.png"></button>

The rest of the FORM would remain the same. See http://www.w3.org/TR/html4/interact/forms.html.