RE: (newbie) how to redirect to html page from php
| From: | Bobby Rahman | Date: | Mon, 17 Mar 2003 13:02:16 +0000 |
| Subject: | RE: (newbie) how to redirect to html page from php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-139944@lists.php.net to get a copy of this message | ||
Hiya
I have a login_screen.html which on submit is sent to login.php.
Login.php does all the checking of usernames and passwords. I am trying to to produce this logic:
//In login.php
if password and username correct {
go to main page
}
else
{
go back to login.screen.html
echo "Please try again";
echo "login Incorrect";
I cannot seem to automatically go back to login_screen.html with the error message displayed in the else statment in login.php.
Any suggestions?
Thanks
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://messenger.msn.co.uk