Redirection is sending someone from one page to another. Or maybe reloading the current page. With PHP, as long as no data has been sent to the browser yet (any HTML, any echo? ? commands, etc) you can send an additional HTTP header to the browser that tells it to go somewhere else:
<?
? ? ? ? if (!headers_sent()) {
? ? ? ? ? ? header("Location:? ? http://www.webmasters-forum.info");
? ? ? ? ? ? exit;
? ? ? ? }
?>? ?
The exit statement is important, because you don't want to bother running the rest of the whole script again when no one's looking. The headers_sent()? ? function returns TRUE if the headers have already been sent - if they have and you try to use the header()? ? function, PHP throws a wobbly and prints errors to the screen and stuff. Very unprofessional.
using only the code:
header("Location: http://www.yoursite.com");
is necessary. It will work.