wbennet997

password

Mar 19th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <html>
  2. <body>
  3. <?php
  4.  if (isset ($_POST['sometext'])) {
  5.     $sometext = $_POST['sometext'];
  6.     if ($sometext == 'P@ssw0rd'){echo "that is the password";}
  7.     else {echo "that is not the password";}
  8.  }
  9. ?>
  10.  
  11. <form method="post" action="index.php">
  12.  Enter the Password: <input type="text" name="sometext">
  13.  <input type="submit">
  14. </form>
  15. </body>
  16. </html>
Advertisement
Add Comment
Please, Sign In to add comment