Entry
how do I refresh and redirect a page using PHP?
Jan 28th, 2002 12:01
Lee Forkenbrock, v s, www.php.net
You can use the header function for redirection...the only thing is
that you must not output to a webpage(eg. echo...print) before
executing this function because it will give you an error. The
following is the example code from php.net...
header("Location: http://www.php.net/"); /* Redirect browser
to PHP web site */
exit; /* Make sure that code below does
not get executed when we redirect. */