I have a page that I need to place a redirect on,
All I want the user to see is that they can't view the page and they immediately get tranferred to another page.
How do I go about this?
header("Location: http://www.example.com/"); exit;
This should work. The exit at the end just makes sure that no code in the page after the redirect gets executed.
Taken from www.php.net/header
Once again it worked, tried using the first code u submitted, had a problem with that, but the second code worked a treat, thanks a lot.
MBK
no problem. the first code i submitted, i had the "automatically parse urls" checked, so it took the www.example.com and changed it into a clickable url. Because it was between php tags, it showed all the html.
glad it worked.