Advertisement
Guest User

Untitled

a guest
Aug 1st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. ?php
  2. include_once('config.php');
  3. if(isset($_POST['email'])){
  4. $email = mysql_escape_string($_POST['email']);
  5. $password = mysql_escape_string($_POST['password']);
  6. $user = new User();
  7. if(strlen($email) > 1 && strlen($password) > 1){
  8. //Checking if $email and $password are not empty
  9.  
  10. $login = $user->user_login($email, $password);
  11. if($login == false){
  12. header('location:index.php?err=1');
  13. //Incorrect Email or Password
  14. }else if($login == true){
  15. header('location:home.php');
  16. }
  17. }else{
  18. }
  19. }
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement