Page 1 of 1

php redirect...

Posted: Tue May 11, 2004 8:13 am
by batfastad
Is there a way to do a PHP redirect?

At the moment I do meta redirects, not ideal!!

Is there a better way?

Thanks

Batfastad

Posted: Tue May 11, 2004 8:15 am
by JayBird

Code: Select all

header("Location: main.php");
No doubt you will get an error the first time you use this, when you do, read this viewtopic.php?t=1157&start=0&postdays=0 ... highlight=

Mark

Posted: Tue May 11, 2004 8:21 am
by patrikG
<totally unrelated> I missed this question so much. Makes me feel like home. I think I should tell my girlfriend to ask me how to redirect with PHP as a welcome when I get home</totally unrelated>... ;)

Posted: Tue May 11, 2004 8:34 am
by batfastad
Superb!!!

Thanks for the excellent help - worked first time as I knew what pitfalls could happen.

Thanks again

Batfastad