I have a page where I register the name session as access, I need the next page to display "Enter" if access is a valid and to say "login" if access is not registered. how close am I?
<?php
// start the session
session_start();
header("Cache-control: private"); //IE 6 Fix
?>
<?
if ($_SESSION['name'] = "access") {
echo "Enter ";
} else {
echo "Login ";
}
?>
I'm certain that access is registered, because it displays it when I echo it.
Sorry, first day working with sessions, and even my first day with the if command..