title: Redirect PHP after script is run
body: <p>I have a script that submits emails entered into a form to a database and I am wondering if there is a way to redirect the PHP script after the email has been submitted? </p>
  
  <p>my script is -</p>
  
  <pre><code>&lt;?php
  $con = mysql_connect("localhost","User","Pass");
  if (!$con)
    {
    die('Could not connect: ' . mysql_error());
    }
  
  mysql_select_db("emails", $con);
  
  $sql="INSERT INTO mlist (email)
  VALUES
  ('$_POST[email]'')";
  
  if (!mysql_query($sql,$con))
    {
    die('Error: ' . mysql_error());
    }
  
  mysql_close($con)
  ?&gt; 
  </code></pre>
  
  <p>please could someone give clear instructions as I am learning PHP still.</p>