Page 1 of 1

What is the equivalent of ASP's RESPONSE.REDIRECT object?

Posted: Sat Nov 23, 2002 9:22 am
by jjuliano
What is the equivalent of ASP's RESPONSE.REDIRECT object in PHP? Please help!

Thanks.

Posted: Sat Nov 23, 2002 9:28 am
by volka
http://www.php.net/manual/en/function.header.php
The second special case is the "Location:" header. Not only does it send this header back to the browser, but it also returns a REDIRECT (302) status code to the browser unless some 3xx status code has already been set.

Posted: Mon Nov 25, 2002 2:54 am
by twigletmac
Be sure to read this - viewtopic.php?t=1157 - as it explains a common pitfall of using the header() function.

Mac