Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <htmL>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Pagina iniciaç</title>
  5. </head>
  6.  
  7. <body>
  8. <form action="" method="post">
  9. <label>Nome
  10. <input type="text" name="nome" id="nome" />
  11. </label>
  12. <p>
  13.   <label>Senha
  14.   <input type="password" name="senha" id="senha" />
  15.   </label>
  16.   <label>
  17.   <input type="submit" name="Confirmar" id="Confirmar" value="Submit">
  18.   </label>
  19. </p>
  20. </form>
  21. </body>
  22. </html>
  23. <?php
  24. if (!empty($_POST["nome"]) && !empty($_POST["senha"]))
  25.  {
  26.     $n = $_POST["nome"];
  27.     $p = $_POST["senha"];
  28.  
  29.     if($n === "lucas" && $p === "camargo")
  30.         {
  31.             echo "Você logou com sucesso";
  32.  
  33.         }
  34.     else
  35.         {
  36.              echo "Login ou senha incorretos";
  37.  
  38.         }
  39. }
  40.  
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement