title: Is there a way to automatically trigger submit without pressing the submit button?
body: <p>I am trying to submit a form automatically without the need to press the submit button. What I'm trying to achieve is, a page gets the information, processes that information and then redirects it to the other page. </p>
  
  <p>My approach on the redirection so far:-</p>
  
  <pre><code>&lt;form action='&lt;?php echo $url;?&gt;' method='post'&gt;
      &lt;input type='hidden' name='hiddenInfo' value='&lt;?php echo $myInfo;?&gt;'/&gt;
  &lt;/form&gt;
  &lt;?php
  header("Location:$url");
  </code></pre>
  
  <p>I know the above code does not work but I'm just trying to show what my approach is. Is it even possible to automatically submit the data without any event handler. </p>
  
  <p>So far I'm trying to avoid the <code>&lt;meta http-equiv="refresh" content="0;url=http://www.mysite.com/info/"/&gt;</code>.</p>
  
  <p>Thanks in advance.</p>