Advertisement
Guest User

aula 1

a guest
Apr 1st, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Jerry Painel - Acesso</title>
  5. </head>
  6. <body>
  7.  
  8. </body>
  9. </html>
  10.  
  11. <?php
  12.     $user = "Jerry";
  13.     $senha = "123";
  14.  
  15.     if($_POST["user"] == $user and $_POST["senha"] == $senha) {
  16.         echo "Login Autorizado.";
  17.     }else{
  18.         echo "Login nao autorizado.";
  19.     }
  20. ?>
  21. <form method="post">
  22.     <input type="text" name="user">
  23.     <input type="password" name="senha">
  24.     <input type="submit">
  25. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement