I am trying to auto submit this form when the page loads, and I have tried many different scripts, but none seem to work. Could someone help?

<html> <head> <title>Untitled 1</title> </head> <body> <form action="http://www.websiteurl.com/index.php" method="post" name="sendform"> <input type="hidden" name="ID" value="89734957838732498723"><input type="submit" name="submit" value="Submit"></form> </body> </html> 

Recommended Answers

All 2 Replies

Member Avatar for diafol

Why do you want to submit a form on page load?

<body onload="document.all.sendform.submit();"> but watch out - if form action will be self address then it raise endless loop

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.