i use phpoys micro login system to login and register users to my website but i cant figure out how i can display the $username in pages....
I integrated this scrip in my website and it works great, but when i want to call $username
, like in the login.php file for example in index.php the $username
doesnt exist?
when i place echo $_SESSION['userName'] ;
i get the username, bu if it was $username i could integrate his in other functions of my website. Is this solvable to read $username not only on he login.php script?
on he login page $username is called like this
if (isset($_POST['submitBtn'])){
// Get user input
$username = isset($_POST['username']) ? $_POST['username'] : '';
$password = isset($_POST['password']) ? $_POST['password'] : '';
}