Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Register</title>
  6. </head>
  7. <body>
  8. <form method="post" action="index.php">
  9. <center>
  10. <p><strong >USERNAME:</strong></p>
  11. <input type = "username" name = "username">
  12. <p><strong>PASSWORD:</strong></p>
  13. <input type ="password" name="password">
  14. <p><strong>REPLAY PASSWORD:</strong></p>
  15. <input type ="password" name="retrypassword">
  16. <p>
  17. <button type ="submit" name="fuck_register=">Register</button>
  18. </p>
  19. </center>
  20. </form>
  21. </body>
  22. </html>
  23.  
  24. <?php
  25.  
  26. if(isset($_POST[‘fuck_register’]))
  27. {
  28. if (empty($_POST['username']) && empty($_POST['password']) && empty($_POST['retrypassword']))
  29. {
  30. echo "<html>";
  31. echo "<body>";
  32. echo "<p><strong>ОШИБКА!</strong></p>";
  33. echo "</body>";
  34. echo "</html>";
  35. }
  36.  
  37. }
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement