How to redirect after a valid login
| From: | Larry Sandwick | Date: | Fri, 12 Mar 2004 20:02:20 +0000 |
| Subject: | How to redirect after a valid login | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-33423@lists.php.net to get a copy of this message | ||
Is there a way that after a execution of a Login script and validation
of login from a MySql database to automatically redirected to run
another script ?
example
someone logs in through the login.php script, in the login script you
are validated and then you run another script called mainmenu.php ?
I have tried the following:
include "mainmenu.php"; // Which gives me an error !
This one just put the link on the page and does not redirect to another
script.
echo "header(Location: <a
href=http://www.example.com/InVocie/MainMenu.php);
'
target='_blank'>http://www.example.com/InVoice/MainMenu.php?r=$a);</a>";
/* Redirect browser */
Larry Sandwick
Sarreid, Ltd.
Network/System Administrator
phone: (252) 291-1414 x223
fax : (252) 237-1592