How can we submit a form without a submit button?

A form can be sent with JavaScript, without a submit button. Use the submit() method of the form, for example from a link click or when a select box changes.

<form id="myForm" method="post" action="process.php">
    <input type="text" name="name" value="Robin">
</form>

<a href="#" onclick="document.getElementById('myForm').submit(); return false;">Send the form</a>
<select onchange="this.form.submit()" name="city" form="myForm">
    <option>Delhi</option>
    <option>Mumbai</option>
</select>

PHP receives the data in the normal way, from $_POST. See PHP Forms Handling.

Note: Do not name any form field “submit” or “action”. It hides the form method and submit() stops working. Also remember that submit() skips the HTML validation, use requestSubmit() if you want the browser to check the fields first.

Learn more about the similar topics:
Tutorials
PHP Forms Handling
PHP Send Mail
PHP header() Function
PHP mail() Function
Exercises & Assignments
Create a PHP Form with 2 fields Name and Hobbies
Interview Questions & Answers
What are the form method Attribute available for submitting?
How can we submit a form without a submit button?
What is the difference between GET and POST method in PHP?
How to redirect a page in PHP?
How to get the browser details of a visitor in PHP?
How to get the previous page (referrer) URL in PHP?
How to get the IP address of a visitor in PHP?