Advertisement
Guest User

php login

a guest
Aug 28th, 2016
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <?php
  2.  
  3. $admins   = array (
  4.                 "Osama",
  5.                 "Hassan",
  6.                 "Wael");
  7.  
  8.                 $logins   = array (
  9.                                 123,
  10.                                 456,
  11.                                 789,
  12.                               );
  13.  
  14.  
  15. $username = $_GET['Username'];
  16. $password = $_GET['Password'];
  17.  
  18. if(in_array($username,$admins)) {
  19.  
  20.   if (in_array($password,$logins)) {
  21.     echo "Welcome";
  22.   } else {
  23.     echo "No";
  24.   }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement