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
Is polymorphism inherited?
What is oops php?
Explain $_FILES Superglobal Array?
Differences between get and post methods?
What is php how it works?
What is the sign to start variables in PHP?
Which is true about the singleton design pattern?
How to include variables in double-quoted strings?
What is php key?
Tell us how can we display the output directly to the browser?
How can I learn php fast?
Tell me what the difference between the 'bitwise and' operator and the 'logical and' operator?
What new features php7 has in store for us?
How to receive a cookie from the browser?
What is data abstraction in php?