HTML Code:
<a href="javascript:document.getElementById('formId').submit();"><img src="submitBtn.jpg" alt="Submit" /></a>
And voila.....
Or use an input type="image" ( http://webdesign.about.com/od/htmlta..._inputimg.htm), and add the onclick="javascript :document.getElementById('formI d').submit();" event.
Note that you must add an id="somethingUnique" to your form definition, or the getElementById won't work.
HTML Code:
<form name="frm1" id="myForm">
<input type="text" />
</form>
<a href="javascript:document.getElementById('myForm').submit();"><img src="submitBtn.jpg" alt="Submit" /></a>
This method allow you to even do the submit from outside the form.
Maybe useful...
__________________
Listen to the ducky: "This is awesome!!!"
Last edited by tripy : 06-08-2007 at 05:44 PM.
|