Redirect to Another Page
Posted: Fri May 26, 2006 9:09 pm
Hi, I'm looking for a way to redirect to another page. A fellow php user told me to use the 'header' command, as shown here:
but that always gives me some nonsense about header information already being sent.
I just want a simple redirect, instead of sending header information. How can I accomplish this?
There's gotta be a way... It seems a robust language like php wouldn't overlook such a simple function, right?
Thanks,
Chris
Code: Select all
if (empty($zip))
{
header ("Location: http://data.honoluluacademy.org/zipcode.php");
exit;
}I just want a simple redirect, instead of sending header information. How can I accomplish this?
There's gotta be a way... It seems a robust language like php wouldn't overlook such a simple function, right?
Thanks,
Chris