title: Auto-submit form using PHP
body: <p>I currently have this:</p>
  
  <pre><code>function submit()
  {
      document.getElementById("lostpasswordform").click(); // Simulates button click
      document.lostpasswordform.submit(); // Submits the form without the button
  }
  
  &lt;body onload="submit()"&gt;
  
      &lt;form name="lostpasswordform" id="lostpasswordform" action="/" method="post"&gt;
          &lt;input type="hidden" name="user_login" id="user_login" class="input" value="&lt;?php echo ($user_login); ?&gt;" /&gt;
      &lt;/form&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>it works on PC, but for some reason, javascript is not execute from iPhone so I'm wondering if theres a way to auto-submit the form using PHP instead of JS?</p>
  
  <p>Thanks</p>