Advertisement
Guest User

Untitled

a guest
Jun 18th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2.  
  3. $username = $_POST['username'];
  4. $password = $_POST['password'];
  5. $accounts = array(
  6. "bolson" => "apassword",
  7. "seanpj" => "anotherpassword",
  8. "justin" => "penis",
  9. );
  10. if($username != null) {
  11. if($password != $accounts[$username]) {
  12. print "You Fail";
  13. }
  14. else {
  15. print "I win";
  16. }
  17. }
  18. ?>
  19. <form action="index.php" method="post">
  20. <input type="text" name="username"></br>
  21. <input type="password" name="password"></br>
  22. <input type="submit" value="login"></br>
  23. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement