daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Jun 18th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top