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
Does mysql need php?
What is the difference between Session and Cookie?
What is the Default syntax used in PHP?
How to Retrieve the Session ID of the Current Session?
What is the difference between implode() and explode() in php?
What is the importance of php?
What new features php7 has in store for us?
How does php and apache work?
How do I install php?
Explain what is the use of "echo" in php?
What do the initials of php stand for?
What are interfaces in php?
Can php run on windows server?
What is php array function?
Where can I learn php?