title: PHP Redirect after form submit
body: <p>I have a question how can I redirect in PHP after a form insert.</p>
  
  <p>Example: I have the file insertMedia.php</p>
  
  <p>The HTML:</p>
  
  <pre><code>&lt;form method="POST" action="insertMedia.php"&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>and after the html the php script:</p>
  
  <pre><code>&lt;?php
  code_for_mysql_insert(); // dummy placeholder function for the MySQL insert
  header('Location: otherSite.php');
  ?&gt;
  </code></pre>
  
  <p>But this doesn't work. What do I have to change?</p>
  
  <p>Thanks for your help
  Lingo</p>