Posted: Tue Jul 25, 2006 6:15 pm
ok I understand case sensitivity but heres the thing This code worked fine untill i added this code to the redirect.php
Could i use this same code to protect each of the redirected pages????
Code: Select all
switch ($_SESSION['group1']) {
case 'Users':
header("Location: http://www.assuredmedical.com/login/sorry.php");
break;
case 'Employees':
header("Location: http://www.assuredmedical.com/login/emp ... ployee.php");
break;
case 'Patients':
header("Location: http://www.assuredmedical.com/login/patient/patient.php");
break;
case 'Referrals':
header("Location: http://www.assuredmedical.com/login/ref ... ferral.php");
break;
case 'Administrators':
header('Location: http://www.assuredmedical.com/secure/ad ... npage.php');
break;
default:
header('Location: http://www.assuredmedical.com/login/sorry.php');
break;
}
?>