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 PHP? Who is the father or inventor of PHP?
Do you know what is use of count() function in php?
Does mysql need php?
What does a dependant variable mean?
What is get and post method in php?
What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?
What function should you use to join array elements with a glue string?
Which array function checks if the particular key exists in the array?
What is difference between get and post?
How to convert strings to upper or lower cases?
What is the method to register a variable into a session?
Explain the differences between get and post methods?
What is mysqli_real_escape_string?
What is the purpose of $_ session?
How to call javascript function in php on button click?