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
What is the use of the function 'imagetypes()'?
What is the best way to change the key without changing the value of a php array element?
How to create an array of a group of items inside an html form?
What is the use of "ksort" in php?
What is the purpose of php?
Can a super () and this () keywords be in same constructor?
Explain the difference between $message and $$message?
What are different types of errors available in Php?
Explain the value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?
How do you check if a variable has been set in php?
Why do we use polymorphism in php?
How do you debug php?
What is php namespace?
Tell me what are the correct and the most two common way to start and finish a php block of code?
Are sessions stateless?