Post HTML <form> on load

RobertRL

New Member
What is the best way to post a HTML Form on load? This is what I'm currently trying:\[code\]<?php if ($Autopost == "1"); { <body onLoad="mail.submit()"> <form method="POST" name="mail" class="adjacent" action="./Script/addmaillist.php"> <input type="hidden" name="email" value="http://stackoverflow.com/questions/15734517/<?php echo $email; ?>"> <input type="hidden" name="genre" value="http://stackoverflow.com/questions/15734517/<?php echo $genre; ?>"> </form> }?>\[/code\]I would just like to know if this is a good way, and if there is a better way?
 
Back
Top