Advertisement
Guest User

Untitled

a guest
Oct 9th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2.  
  3. if(isset($_POST['submit'])) {
  4.  
  5.     $username = $_POST['username'];
  6.     $password = $_POST['password'];
  7.  
  8.     if( $username == "admin" && $password == "admin" ) {
  9.         echo "Logged in";
  10.     } else {
  11.         echo "Bitch!";
  12.     }
  13.  
  14. }
  15.  
  16. <form method="post" action="<?=$_SERVER['PHP_SELF'];?>">
  17. <input type="text" placeholder="Enter Username" name="username" required>
  18. <input type="password" placeholder="Enter Password" name="password" required>
  19. <input type="submit" name="submit"/>
  20. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement