Hi,
I have a login page, verify_user page and a admin homepage. I am trying to display the username of the logged in user at the top of the admin homepage. In verify_user I have the code:
$username = $_POST['username'];
which receives the data from the login page. I then have the code to set the session variable in verify user:
$_SESSION['username'] = $username;
Lastly, when I use $_SESSION['username'] in the admin homepage to display the username, I get the following error:
Notice: Undefined index: username in c:.....admin_home.php
Any suggestions would be much appreciated!
Many Thanks