Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * @author Jason
  5. * @copyright 2011
  6. */
  7.  
  8. if ( $_POST['submit'] ) {
  9.  
  10. $username = $_POST['username'];
  11. $password = $_POST['password'];
  12.  
  13. if ( $username && $password == "jason" ) {
  14.  
  15. echo "Works!";
  16.  
  17. } else {
  18.  
  19. echo "Wrong!";
  20.  
  21. }
  22.  
  23. } else { ?>
  24.  
  25. <form method="POST" action="">
  26. Username: <input type="text" name="username"/>
  27. Password: <input type="text" name="password"/>
  28. <input type="submit" name="submit"/>
  29. </form>
  30.  
  31. <?php
  32. }
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement