I am creating the session and i am able to login and logout efficiently. But my problem is in menu bar i have a option as login. When the user clicks on it and logs in how to change the text Login to Text Logout?
Like example
<a href"home.php">Home</a>
<a href"aboutus.php">Aboutus</a>
<a href"login.php">Login</a>
These are present in the main sheet as default. But when the user logs in i want it to be changed into
<a href"home.php">Home</a>
<a href"aboutus.php">Aboutus</a>
<a href"logout.php">Logout</a>
automatically. I know that we have to create a session and check for the user id ut exactly i dont know how. Please help me
you can use php to do that .. you create a php block which generates Login using echo..
it should be something like this