A form can be posted or submitted without the button in the following ways:
1. On OnClick event of a label in the form, a JavaScript function can be called to submit the form.
Example:
document.form_name.submit()
2. Using a Hyperlink: On clicking the link, JavaScript function can be called.
Example:
<a href="javascript:document.MyForm.submit();">
A form can be submitted in these other ways without using submit button.
- Submitting a form by clicking a link
- Submitting a form by selecting an option from drop down box with the invocation of onChange event
- Using java script : document.form.submit();
- Using header(“location:page.php”);