Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <form action="post.php" method="POST">
- <fieldset>
- <legend>Formulario HTML</legend>
- <p>
- <label for="nome">Nome: </label>
- <input type="text" name="nome" id="nome">
- </p>
- <p>
- <label for="email">E-mail</label>
- <input type="text" name="email" id="email">
- </p>
- </fieldset>
- <p>
- <input type="submit" value="Enviar" id="enviar">
- </p>
- </form>
- </body>
- </html>
- Arquivo na onde enviado os dados get.php post.php
- <h1>Kjnetsecuryt - Metodo GET</h1>
- <?php
- echo 'Nome: ' . ($_GET['nome'] ?: '')."<br>";
- echo 'E-mail: ' . ($_GET['email'] ?: '')."<br>";
- ?>
- <h1>Kjnetsecuryt - Metodo POST</h1>
- <?php
- echo 'Nome: ' . ($_POST['nome'] ?: '')."<br>";
- echo 'E-mail: ' . ($_POST['email'] ?: '')."<br>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement