Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

[SOLVED] After login Page redirect

$
0
0
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

Viewing all articles
Browse latest Browse all 2586

Trending Articles