Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
echo $_SESSION["UserID"];if ($_SESSION["UserID"] = "johnsmith"){// header("location: http://www.google.com");// exit();echo $_SESSION["UserID"];}==========================================================================Line 1 echos the CORRECT Login User idLine 2 is supposed to test for that user ID and do something for a particular user,but it is really just setting the userid to Johnsmith" rather than testing for itCan you give me some direction ???
Hi,correct usage is ==if ($_SESSION["UserID"] == "johnsmith")