Interview Questions

How can we submit a form without a submit button?

PHP Interview Questions and Answers


(Continued from previous question...)

How can we submit a form without a submit button?

If you don't want to use the Submit button to submit a form, you can use normal hyper links to submit a form. But you need to use some JavaScript code in the URL of the link. For example:

<a href="javascript: document.myform.submit();">Submit Me</a>

(Continued on next question...)

Other Interview Questions