title: script is send then Page is not redirect
body: <p>If click the submit button, then this code should execute, but this is not working.</p>
  
  <pre><code>header('Location: http://www.yourtargeturl.com'); //script api
  echo '&lt;script&gt;window.open("'.$_SERVER['PHP_SELF'].'","_self")&lt;/script&gt;';
  </code></pre>