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 are the advantages of stored procedures in php?
How to include a file code in different files in php?
What is the use of $_server["php_self"] variable?
Tools used for drawing er diagrams?
Is not null mysql?
What is Type hinting in PHP?
What are traits?
Why php is also called as scripting language?
How does the identity operator === compare two values?
What is the difference between client-side and server-side programming?
In php, objects are they passed by value or by reference?
Why php is used in html?
Is facebook still in php?
Write a program to display table of a number using php?
Differentiate between php5 and php7?