Advertisement
Guest User

Untitled

a guest
Apr 19th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. ?php
  2.  
  3. ini_set('display_errors','On');
  4. error_reporting(E_ALL);
  5.  
  6. if ($_POST)
  7. {
  8. $username = $_POST['username'];
  9. $password = $_POST['password'];
  10.  
  11. if ($username == 'tommycostello' && $password == 'jebisamess') {
  12. echo 'Your username: ' . $username . '<br />';
  13. echo 'Your password: ' . $password . '<br /><br />';
  14. }
  15. else {
  16. echo 'Not the right username/password. <br /> <br />';
  17. }
  18.  
  19. }
  20. ?>
  21.  
  22. <html>
  23. <body>
  24. <form action="" method="POST">
  25. Username: <input type="text" name="username"><br /><br />
  26. Password: <input type="password" name="password"><br/><br />
  27. <input type="submit" value="Login!"><br /><br />
  28. </form>
  29.  
  30. </body>
  31. </html
  32. ~
  33. ~
  34. ~
  35. ~
  36. ~
  37. ~
  38. ~
  39. ~
  40. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement