<script type="text/javascript">function submitform(){ document.forms["myform"].submit();}</script><!-- give the path where you want to redirect the page and set the method attribute according to that --><form id="myform" action=""> Text: <input type='text' name='text'><a href="javascript: submitform()">Submit</a></form>