Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($username == $dbUserName && $password == $dbPassword) {
- $_SESSION['username'] = $username;
- $_SESSION['id'] = $userId;
- header('Location: user.php');
- }
- else {
- echo "<b><i>Invalid credentials</i><b>";
- }
Add Comment
Please, Sign In to add comment