Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Homepage</title>
- </head>
- <body>
- <h1>Forms</h1>
- <h2>Registro</h2>
- <form method="POST" action="teste.php?area=registro">
- Nome: <input type="text" name="user"><br />
- Senha: <input type="password" name="password">
- <input type="submit" id="register">
- </form>
- <h2>Login</h2>
- <form method="POST" action="teste.php?area=login">
- Nome: <input type="text" name="user"><br />
- Senha: <input type="password" name="password">
- <input type="submit" id="login">
- </form>
- <?php
- $estado=$_GET["area"];
- if ($estado == "registro"){
- }
- if ($estado == "login"){
- }
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment