Login Script
Moderator: General Moderators
Login Script
I am new to programming and have been given the task of creating 3 login area's on our site that will allow multiple users to login, but to only one of the 3 area's using 1 login box. It is apparently some sort of redirection that needs to occur but I cannot figure it out. I have spent 3 days looking all over the internet for any information to help, but anything I found was a dead end. Can anyone help me to create something?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
switch($user_type)
{
case 'admin' :
$url = 'adminpage.php';
break;
case 'moderator' :
$url = 'i.r.moderator.php';
break;
default:
$url = 'i.crummy.user.php';
break;
}
header( 'Location: ' . $your_site_url_root . $url );