RE: [PHP-DB] Login script help
| From: | Bastien Koert | Date: | Fri, 22 Dec 2006 00:35:50 +0000 |
| Subject: | RE: [PHP-DB] Login script help | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42847@lists.php.net to get a copy of this message | ||
why not just create a simple single logon page and not include it....then on sucessful login, redirect the user to the index page?
bastien
From: "Haig Dedeyan" <haig@x2omedia.com> To: <php-db@lists.php.net> Subject: [PHP-DB] Login script help Date: Thu, 21 Dec 2006 16:36:11 -0500 Hi everyone, My 1st attempt at creating a login script isn't going so good, so hopefully someone can help me out. The login script itself works fine but when I include it into a web page, the login.php script shows up but the entire index.html page also shows up. I just want people to log in before they get to index.html. Index.html starts off with: <?php session_start(); include("database.php"); include("login.php"); ?> I'm using php5. Thanks Haig -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php_________________________________________________________________ Off to school, going on a trip, or moving? Windows Live (MSN) Messenger lets you stay in touch with friends and family wherever you go. Click here to find out how to sign up! http://www.telusmobility.com/msnxbox/