Hi I'm using the following line to submit a form data.
<input type="submit" value="Submit the Request"/>
My question is how can I place an image of a button instead of the regular button, and how to program that when someone is pressing the image the form variables are still being passed to the next page?
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Hi I'm using the following line to submit a form data.
<input type="submit" value="Submit the Request"/>
My question is how can I place an image of a button instead of the regular button, and how to program that when someone is pressing the image the form variables are still being passed to the next page?
How can I do it?
Thanks in advanced, Oz.
use this:
<input type="image" src="yourfile.gif"/>
use this:
<input type="image" src="yourfile.gif"/>
Actually, that's wrong. See my post above.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
You'll find that it doesn't validate. Follow the links that I provided.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
I don't know what you mean. The following goes through what I would call normal validation in both IE and Mozilla (and at the W3C validator). I know there are other browsers, but perhaps you'd care to elucidate.
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Language" content="en-us"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Submit Image</title></head><body><form action="" onsubmit="alert('validating'); return false;"><p><input type="image" src="../images/SubmitA.gif"
alt="Submit Form" style="width:136px; height:48px;"></p></form></body></html>
Probably just because it is missing an alternate text specification -- but, apparently, a lack of common courtesy forbade such a simple answer to our questions.
Probably just because it is missing an alternate text specification -- but, apparently, a lack of common courtesy forbade such a simple answer to our questions.
Charles' answers are always accurate, but somtimes not as helpful as they could be. I, like many others, don't really want to wade though technocratic (is that a word?) documentation.
I, like many others, don't really want to wade though technocratic (is that a word?) documentation.
Don't blame me for refusing to cater to your sloth.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks