title: How can I stay on same page and open a new tab automatically
body: <pre><code>&lt;?php 
  
  error_reporting(E_ALL);
  $name=$_GET['name'];
  $email=$_GET['email'];
  $key=$_GET['key'];
  
   ?&gt;
  &lt;!DOCTYPE HTML&gt;
  
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;link rel="shortcut icon" href="favicon/favicon.ico" type="image/x-icon"&gt;
          &lt;link rel="icon" href="favicon/favicon.ico" type="image/x-icon"&gt;
          &lt;script type="text/javascript"&gt;
              function formAutoSubmit () {
              var frm = document.getElementById("myform");
              frm.submit();
              }
              window.onload = formAutoSubmit;
              &lt;/script&gt;
      &lt;/head&gt;
  
  &lt;body&gt;
  
  
  
  
  
   &lt;form method='POST' id="myform" action='https://www.example.com/cgi-bin/arp3/arp3-formcapture.pl'&gt;
  
                          &lt;input type='hidden' type='text' name='first_name' value='&lt;?php echo $name ?&gt;' size='20'&gt;
  
                          &lt;input type='hidden' type='text' name='email' value='&lt;?php echo $email; ?&gt;' size='20'&gt;
  
                          &lt;input type='hidden' name='subscription_type' value='E'&gt;&lt;div align='center'&gt;&lt;center&gt;
  
                          &lt;input type='hidden' name='id' value='3'&gt;
  
                          &lt;input type='hidden' name='extra_ar' value=''&gt;
  
                      &lt;input type='hidden' type='submit' value='Please click here to complete signup process' &gt;
                      &lt;/form&gt;
  
      &lt;?php include 'login/js/main_js.php'; ?&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>I am trying to submit a form automatically and also want to automatically open a new tab or window from this same page with given url.
  What I am trying to do is when this page open a form is submitted to auto res ponder and also open a new page to activate user account
  please help</p>