SHARE
TWEET

Untitled

a guest May 27th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top