Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. $username = _POST("username");
  3. $password = _POST("password");
  4.  
  5. $un = ["eliez","greatGuy","blogger"];
  6. $pw = ["tr789ial","abc123","23seventeen23"]
  7. $count = 0;
  8.  
  9. for($x =0; $x < 3; $x++){
  10. if($username == $un[x] && $password == $pw[x])
  11. count++;
  12. }
  13.  
  14. if(count > 0){
  15. echo "You have sucessfully logged in!";
  16. }
  17. else
  18. echo "Your login failed"
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement