<script> function submitform(form){ document.forms[form].submit(); } </script> <form id="form1" action="..." method="..."> .... <a href="javascript: submitform('form1') ">Submit</a> .... </form>