Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <htmL>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Pagina iniciaç</title>
- </head>
- <body>
- <form action="" method="post">
- <label>Nome
- <input type="text" name="nome" id="nome" />
- </label>
- <p>
- <label>Senha
- <input type="password" name="senha" id="senha" />
- </label>
- <label>
- <input type="submit" name="Confirmar" id="Confirmar" value="Submit">
- </label>
- </p>
- </form>
- </body>
- </html>
- <?php
- if (!empty($_POST["nome"]) && !empty($_POST["senha"]))
- {
- $n = $_POST["nome"];
- $p = $_POST["senha"];
- if($n === "lucas" && $p === "camargo")
- {
- echo "Você logou com sucesso";
- }
- else
- {
- echo "Login ou senha incorretos";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement