hi
i have a login page which is allowing only registered user .it is working too......
but when the second page URL is typed it is getting displayed i want the all the user to enter through the first page.......when the second page URL is typed it should not get displayed............
lydia21
9
Junior Poster
Recommended Answers
Jump to PostHeres my code....
Loginform.php<table> <tr><td></td><td> <?php if(isset($_SESSION['group'])){ echo "You are logged in as: <b>"; echo $_SESSION['username']; } else { ?> <table> <form name="loginform" method="post" action="login.php"> <tr><td>Username:</td><td><input type="text" name="username"></td><td>Password:</td><td><input type="password" name="password"></td><td></td><td><input type="submit" value="Submit"><input type="reset" value="Clear"></td></tr> </form> </table> <? } ?>
Code above first checks if the session …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.