Basic PHP Programming Question:
Download Questions PDF

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

Download PHP Interview Questions And Answers PDF

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?