This topic is locked
[SOLVED]

 After login Page redirect

10/5/2019 01:53:01
PHPRunner General questions
A
AndrewMark author

After login in the event After successful login I have entered the following code
$admin="Admin";

$subject = "Subject";

if($data["GroupStatus"]=$subject){

header("Location: subjectresponse_list.php");

}if($data["GroupStatus"]=$admin){

header("Location: menu.php");

}else {

header("Location: menu.php");

}

exit();
The problem I am having is that when the GroupStatus field = Subject is does not redirect to the subjectresponse_list.php page.
Hence the code is not working. I have tried to change $data to $values and a few other changes but cannot get this to work. Any assistance would be appreciated