Interview Questions

How can we submit form without a submit button?

PHP Interview Questions and Answers


(Continued from previous question...)

How can we submit form without a submit button?

We can use a simple JavaScript code linked to an event trigger of any form field. In the JavaScript code, we can call the document.form.submit() function to submit the form. For example: <input type=button value="Save" onClick="document.form.submit()">

(Continued on next question...)

Other Interview Questions