title: How to redirect to another page in php after form is complete?
body: <p>I have a registration form in a site I am building. If it is filled correctly, I want the user to go back to the main page.</p>
  
  <p>I tried to use <code>header</code> but I get "Cannot modify header information..." I guess this happens because I post to <code>$_SERVER['PHP_SELF']</code>;</p>
  
  <p>Any suggestions of how can I redirect the user if the form is ok? (Other than a success page with a button)</p>