Look up the header() function in the docs.  Basically, you would do
this:

if($logged_in_ok)
        header("Location: ".$url_to_go_to);

There are some things to note when using header, so again, check the
docs before you use it.

---Matt, XPODesigns.com

-----Original Message-----
From: Antoine [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 24, 2003 11:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] having php auto load a page

this might appear to be a simple question but I would like to know how I
am able to have php auto load a different page.   Here is the problem. 
I have a nice script that is used for logining in a user.  But I have
the script call itself so that it can test to see if the user name is
correct.  If the script is correct, I would like the page to just load
in the user's main page.  Is there any function that can do this?

-- 
Antoine <[EMAIL PROTECTED]>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to