title: Post HTML <form> on load
body: <p>What is the best way to post a HTML Form on load? This is what I'm currently trying:</p>
  
  <pre><code>&lt;?php  
   if ($Autopost == "1");
   {
     &lt;body onLoad="mail.submit()"&gt;
     &lt;form method="POST" name="mail" class="adjacent" action="./Script/addmaillist.php"&gt;
     &lt;input type="hidden" name="email" value="&lt;?php echo $email; ?&gt;"&gt;
     &lt;input type="hidden" name="genre" value="&lt;?php echo $genre; ?&gt;"&gt;
     &lt;/form&gt;
   }
  ?&gt;
  </code></pre>
  
  <p>I would just like to know if this is a good way, and if there is a better way?</p>