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" <[EMAIL PROTECTED]> 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


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

Reply via email to