How can you submit a form without a submit button?

Answer:
Using Javascript.

This method will use a function attached to a Button but you can call this at any point after the Form has loaded.

<script type="text/javascript">
function submit_form(id){
If(!id){ return false; }
document.getElementById(id).submit();
}
</script>

<form id="myform">
<input type="button" onclick="submit_form('myform');" />
</form>
First answer by Rpgz. Last edit by Rpgz. Contributor trust: 94 [recommend contributor recommended]. Question popularity: 3 [recommend question].