Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pt-br">
- <head>
- <meta charset="utf-8">
- <title>Meu Site!</title>
- </head>
- <body>
- <h1>RETORNO DAS INFORMAÇÕES</h1>
- <?php
- //processar_formulario.php
- if ($_SERVER["REQUEST_METHOD"] == "POST") {
- $nome = $_POST["nome"];
- $cidade = $_POST["cidade"];
- echo "Nome: " . $nome . "<br>";
- echo "Cidade: " . $cidade;
- }
- ?>
- <br>
- <h2><?php
- echo "Mais uma linha de texto.";
- ?></h2>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement