Basic PHP Programming Question:
How can we submit form without a submit button?
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()">
Previous Question | Next Question |
With a heredoc syntax, do I get variable substitution inside the heredoc contents? | How can we create a database using PHP and mysql? |