How to submit a form on page load without clicking submit button?
<p>Is there a way to make a form submit "onload" without clicking a
submit button with PHP? i saw some ways to make it with Javascript, but i love php and id like to make it with php.</p>

<p>For example:</p>

<pre><code>&lt;form action="https://xxxxxx.com/yyy.php" method="post" id="foo"&gt;
&lt;input type="hidden" name="LoginEmail" value="user [at] domain.com"&gt;
&lt;input type="hidden" name="LoginPassword" value="mycleartextpassword"&gt;
&lt;input type="submit" name="Authenticate" value="Login"&gt;
&lt;input type="hidden" name="Action" value="1" &gt;
&lt;/form&gt;
</code></pre>

<p>I can make it with javascript:</p>

<pre><code>&lt;form id="foo"&gt; .... &lt; /form&gt;

&lt;script type="text/javascript"&gt;
    function myfunc () {
        var frm = document.getElementById("foo");
        frm.submit();
    }
    window.onload = myfunc;
&lt;/script&gt;
</code></pre>

<p>Well, Can we make same thing with PHP? Could you please kindly share your ideas and advices?</p>

<p>Thank you.</p>
