Dear All,
i have created a form to post a username to login.php (form located in main.php) and when i click of log bot.
the user name variable is not there .. ?!
what can i do ..?
what i need, is, when a user log in, after checking his username and password (and i have no problem with this) i want to keep a note in his computer that he is logges wherever he go in the website ...
and to replace the GUEST word by the usename ..
i have wrote in the login.php:
<?php
session_start("userab");
if (!session_is_registered("userab")){
echo "<font size='1'>(Guest)</font>";
}else{
echo "<font size='1'>(".$userab.")</font>";
}
?>
and to register the username in the session:
session_register("userab");