Re: Login
| From: | Kyle Terry | Date: | Wed, 08 Oct 2008 00:51:38 +0000 |
| Subject: | Re: Login | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281558@lists.php.net to get a copy of this message | ||
You can just use a header redirect. For example: if you are at login.php and the user is authorized, you could use if($auth === true){ header("Location: authed_page.php");
} else { header("Location: denied.php"); }
On Oct 7, 2008, at 5:44 PM, "Terry J Daichendt" <tjdaichendt@comcast.net> wrote:
I want to open a page if a login is correct and another if not. What is the function to open a page in PHP? Can you show me a simple example of the syntax? --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php