title: PHP - Auto login to another page
body: <p>How to automatically log on to another site without leaving the current page? Predefined username and password. Hiding fields display only button to logging. After clicking on the button, but not to leave the current site. I am sorry for my English.</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
  &lt;html&gt;
    &lt;head&gt;
    &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
    &lt;meta name="test" content="test"&gt;
    &lt;title&gt;Test&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt; 
  
  &lt;form id="loginForm" name="loginForm" method="post" action="http://www.streamuj.tv/login"&gt;
  &lt;p&gt;
  &lt;label for="name"&gt;Uživatel:&lt;/label&gt;
  &lt;br /&gt;
  &lt;input type="text" name="username" size="22" tabindex="3" id="name" class="logintext" /&gt;
  &lt;br /&gt;
  &lt;label for="password"&gt;Heslo:&lt;/label&gt;
  &lt;br /&gt;
  &lt;input name="password" type="password" class="logintext" id="password" tabindex="4" size="22" /&gt;
  &lt;br /&gt;
  &lt;a href="http://www.streamuj.tv/recoverpassword" title="Forgot!"&gt;Zapomněli jste heslo?&lt;/a&gt;&lt;br /&gt;
  &lt;input type="hidden" name="action_login" value="Přihlásit se" /&gt;
  &lt;input type="image" src="http://www.streamuj.tv/images/login.gif" tabindex="5" class="loginbutton" /&gt;
  &lt;/p&gt;
  &lt;/form&gt;
  
    &lt;iframe src="http://movies.sosac.to/cs/embed?video=75794&amp;id=10416&amp;affid=177519&amp;width=640&amp;height=360" width="640" height="360" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>