Advertisement
Guest User

ceklogin

a guest
Jan 8th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <?php
  2.  
  3. ob_start();
  4. session_start();
  5. ob_end_clean();
  6.  
  7. $username=$_POST["username"];
  8. $password=$_POST["password"];
  9.  
  10. if($username=="admin" AND $password=="admin")
  11. {
  12. $_SESSION["username"]=$username;
  13. header("location:home.php");
  14. }else{
  15. header("location:login.php?login_error");
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement