Unholy Prayer Posted August 28, 2006 Share Posted August 28, 2006 Ok, I want to show a login form on my index page if the user isn't logged in. How do I make it so the login form only shows up for users that aren't logged in? Quote Link to comment Share on other sites More sharing options...
radar Posted August 28, 2006 Share Posted August 28, 2006 well first off you'd need to decide if you are using cookies or sessions.. and then alter this code to suite..$username = $_SESSION['inuser'];if ($username == "") {$username == "Guest"include ('login.php');}And there you go... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.