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
Tell me how is it possible to propagate a session id?
What are the advantages of stored procedures, triggers, indexes in php?
What is a php class?
Which php function will attach one file to another?
How many columns can be added in a table in mysql?
What is the purpose of using php?
iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not
How to convert a string to uppercase in php?
Explain about the data types in PHP?
Tell me what library is used for pdf in php?
Explain the difference between require() and require_once()?
Explain Type hinting in PHP?
How to delete cookie files on your computer?
How do you debug php?
What is the difference between for and foreach loop in php?