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


Please Help Members By Posting Answers For Below Questions

Why use php artisan serve?

681


How do you measure variables?

742


What does $_env mean?

759


How to create a session? How to remove data from a session?

724


How to run the interactive php shell from the command line interface?

778


What is difference between html and php?

700


How long should a session last?

701


Which function will you use to create an array?

725


Why do you need to filter out empty files?

700


for image work which library?

736


What is php compared to html?

720


What are the Advantages and Application Areas of PHP?

701


What is $_ request?

731


How to break a file path name into parts?

727


How is it possible to return a value from a function?

744