Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
How could I redirect to a different page after login depending on the user group.tried the code below but it does not work.if ($session['Userid'] == 'user'){header ("Location: pag1_report.php"); }elseif ($session['Userid'] == 'admin'){header ("Location: pag2_report.php"); }exit ();
if($_SESSION['UserID'] == 'user'){ header("Location: pag1_report.php"); }else{ header("Location: pag2_report.php"); }exit();
Thanks worked perfectly, except that I changed the 'Userid' for 'GroupID'if($_SESSION['GroupID'] == 'super'){header("Location: pag1_report.php"); }else{header("Location: pag2_report.php"); }exit();