Home / code

Submit a form with a link

Writer: Christophe Wolfs
Published: 27 March 2008

When you click on the link the form gets submited.

<FORM ACTION="form.html" method="GET" name="nameofform">
  <input type="hidden" name="something" value="testvalue">
  <input type="text" name="textname" maxlength=60>
  Send the form, <a href="javascript:document.nameofform.submit();">Click here</a><br>
</FORM>

 

TOP