I have some code that changes links once the user logs in, however it's not working properly. For example there is a link called "Register" (with the url/register.php) that should change to Member Area (with the url /member.php) once there is a valid session (the user has logged on) .. however it's not working, perhaps someone can see an error in the code?
This is for the Session check:
$is_mem = $_SESSION["valid_user"];
This is to do the switch:
if ($is_mem <> "")
echo "<a href=\"http://$url/member.php\">$la_member_area</a>";
echo "<a href=\"http://$url/register.php\">$la_reg</a>";