Advertisement
Geicy

Untitled

Jul 7th, 2021
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. <?php
  2. // Botão enviar
  3. if(isset($_POST['btn-entrar'])):
  4.     echo "Clicou";
  5. endif;
  6. ?>
  7.  
  8. <html>
  9. <head>
  10.     <meta charset="utf-8">
  11.     <title>Login</title>
  12. </head>
  13. <body>
  14.  
  15. <h1> Login </h1>
  16.  
  17. <form action="<?php echo $_SERVER['PHP_SELF']" method="POST">
  18. Login: <input type="text" name="login"><br>
  19. Senha: <input type="password" name="senha"><br>
  20. <button type="submit" name="btn-entrar"> Entrar </button>
  21. </form>
  22.  
  23. </body>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement