Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="captar.php" method="POST">
- Username: <input type="text" name="nome"><br>
- Password: <input type="password" name="pass" size="20"><br>
- <input type="submit" value="Fazer Login">
- </form>
- <html>
- <head>
- <title>PHP</title>
- </head>
- <body>
- <?php
- $nome=$_POST["nome"]; // capta o que se preencheu na caixa de texto de name="nome"
- $pass=$_POST["pass"]; // capta o que se preencheu na caixa de texto de name="idade"
- echo"Login: ".$nome."<br>";
- echo"Password: ".$pass;
- if ($nome=="berb" && $pass=="berb")
- {header("Location:main.html");}
- else
- {header("Location:error.php");}
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement