How can we submit a form without a submit button?
Answer Posted / viktor
Into HEAD section:
<script language="javascript" type="text/javascript">
function DoSubmit ()
{
document.myform.submit();
}
</script>
BODY section:
<body onload="document['myform'].submit()">
<form action="http://www.mysite.com/post.php" method="post"
name="myform" target="_self">
</form>
</body>
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
What is difference between isset and empty in php?
What is the function in PHP do not return a timestamp?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
What Is a Persistent Cookie?
What is a lambda function in php?
How to reset/destroy a cookie?
How to uploaded files to a table?
What is regular expression in php?
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
How do you remove whitespace from the beginning and end of a $string variable?
Is it possible multiple inheritance in php?
What does trim () do in javascript?
How does firefox manage cookies?
What is the current stable version of php? What advance thing in php7?