Guest User

Untitled

a guest
May 27th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. if($username == $dbUserName && $password == $dbPassword) {
  2. $_SESSION['username'] = $username;
  3. $_SESSION['id'] = $userId;
  4. header('Location: user.php');
  5. }
  6.  
  7. else {
  8. echo "<b><i>Invalid credentials</i><b>";
  9. }
Add Comment
Please, Sign In to add comment