In order to transfer the user to another page programatically, write a location header to the page, for example:

  // turn buffering on, so no other content is written to page before the 
  // redirect headers
  ob_start();
  ..
  ..
  // remove data in buffer and write header
  ob_clean();
  header("Location: mypage.htm");
  exit;