Basic PHP Programming Question:

How can we submit form without a submit button?

Tweet Share WhatsApp

Answer:

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()">

Download PHP PDF Read All 139 PHP Questions
Previous QuestionNext Question
With a heredoc syntax, do I get variable substitution inside the heredoc contents?How can we create a database using PHP and mysql?