title: Redirect to another page after button submit
body: <p>I am building an application where details are displayed (admin.php).The user clicks on edit(edit.php) and he is redirected to another page to edit his details. Once the edit is done the values are updated and I want to redirect to the previous page once again where the details are displayed. All the operations carry out as desired , but when I try to redirect inside the "submit" to the previous page it doesn't occur.</p>
  
  <p>Admin.php</p>
  
  <pre><code>    $event_id = $_SESSION['fedit'];
      if($_GET['edit'])
      {
       $url = "edit.php?event_id=". $event_id;  
       header("Location: $url");
      }
  </code></pre>
  
  <p>Edit.php</p>
  
  <pre><code>     if($_GET["Submit"])
                {
                   $val=$_GET['event'];
                   $remail=$_GET['email'];
                  $rname = $_GET['ename'];
                  $sqt=mysql_query("UPDATE users SET NAME='$rname',EMAIL='$remail' WHERE EID ='$val'");
                  $page= "admin.php";
                  header("Location: $page");
               }
  </code></pre>