Is it possible to submit a form using a link, instead of a submit button?
Printable View
Is it possible to submit a form using a link, instead of a submit button?
sure...
the link doesn't really need to be within the form tags, but I thought it looked nicer;)Code:<form name="frmMain" method="GET" action="someSortOfCGIorWhatNot.asp">
<a href="javascript:frmMain.submit()">Click here!</a>
</form>
:)
Cheers mate :)