title: header(location) on form does not work after submit button clicked
body: <p>This is my code for my submit button. Once data submitted to mysql i want it to redirect to page.html.</p>
  
  <pre><code>&lt;form name="gender."; action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" method="post" &gt;
  </code></pre>
  
  <p>I have added</p>
  
  <pre><code>     &lt;?php 
        header("location:page.html");     
      exit; } 
  &lt;?
  </code></pre>
  
  <p>to the very top of my form page. However it just loads page.html rather loading after submit button is clicked. </p>