[snip]
Is the following code the best way to redirect someone to a different
page using PHP?
<?php
header("Location: http://www.yahoo.com");
?>
I looked for a "redirect" function of some kind and didn't come up with
anything. Just curious what the consensus is...
[/snip]
yes
http://www.php.net/header has a good way to redirect to other pages on
your site.
header("Location: http://" . $_SERVER['HTTP_HOST']
. dirname($_SERVER['PHP_SELF'])
. "/" . $relative_url);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php