faqts : Computers : Programming : Languages : PHP : Common Problems : Redirects

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

24 of 33 people (73%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How can I redirect using header() to http://www.domain.com/?mode=passwd

May 16th, 2001 05:50
Philip Olson, Jason Gilstrap,


No difference :
    header("Location: http://www.domain.com/?mode=passwd");
    exit;
And in root page of domain.com you'd have something similar to :
    if ($HTTP_GET_VARS['mode'] == 'passwd') {
        echo 'Welcome to Password Mode!';
    }
Related information can be seen here :
    http://www.faqts.com/knowledge_base/view.phtml/aid/4127/
    http://www.php.net/manual/function.header.php