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">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="Author" content="Hercio Neto">
- <title>Aula HTML - Formulário Resposta</title>
- <style type="text/css">
- body {
- font-family: Arial, sans-serif;
- font-size: 16px;
- background-color: #f0f0f0;
- }
- .container {
- max-width: 800px;
- margin: 0 auto;
- padding: 20px;
- background-color: #fff;
- box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
- }
- label {
- display: block;
- margin-bottom: 5px;
- font-weight: bold;
- }
- </style>
- <script type="text/javascript">
- function exibeMsg(){
- alert("Olá, obrigado por seus dados.");
- }
- </script>
- </head>
- <body onload="exibeMsg()">
- <div class="container">
- <h1>Cadastro de Endereço</h1>
- <label for="nome">Nome:</label>
- <?php
- $nome = $_POST["nome"];
- echo $nome;
- ?>
- <label for="endereco">Endereço</label>
- <?php
- $endereco = $_POST["endereco"];
- echo $endereco;
- ?>
- <label for="cidade">Cidade:</label>
- <?php
- $cidade = $_POST["cidade"];
- echo $cidade;
- ?>
- <label for="estado">Estado:</label>
- <?php
- $estado = $_POST["estado"];
- echo $estado;
- ?>
- <label for="email">E-mail:</label>
- <?php
- $email = $_POST["email"];
- echo $email;
- ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement