Login Script to redirect based on "role"

Thank You Guys… After taking the last two posts I was able to get it to work

by changing



if($role =='Administrator'){
$link = 'newuser.html';
}
elseif($role =='Clinic){
$link ='rrform.html';
}

// SESSION Register
$_SESSION["mysusername"] = $myusername;
$_SESSION["password"] = $mypassword;
$_SESSION["role"] = $role;