Am trying to redirect a user to a page if some condition are true but it keep redirecting to the first page whether or not the condition is true. Here is my code:
if($level ="100_level")
{
header("location:course_reg.php");
}else {
header("location:course_reg_200_level.php");
}