How can we submit a form without a submit button?
Answer Posted / saiprasad
<script type="text/javascript">
function submitform()
{
document.forms["myform"].submit();
}
</script>
<form id="myform" action="submit-form.php">
Search: <input type='text' name='query'>
<a href="javascript: submitform()">Submit</a>
</form>
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is the use of explode() function?
What does the scope of variables means?
Can we override static method in php?
Explain the syntax for ‘foreach’ loop with example.
What is static method php?
What is php resource type?
What does the unlink() function means?
Tell me what is the definition of a session?
Tell me how comparison of objects is done in php5?
Explain about switch statement in PHP?
Where are php configuration settings stored?
What is meant by MIME?
How can we connect to a mysql database from a php script?
What is the correct line to use within the php.ini file, to specify that 128mb would be the maximum amount of memory that a script may use?
Explain me what is the goto statement useful for?