Advertisement
hercioneto

Resposta.php

Sep 5th, 2023
1,102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.43 KB | None | 0 0
  1. <!Doctype html>
  2. <html lang="pt-br">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1">
  6.     <meta name="Author" content="Hercio Neto">
  7.     <title>Aula HTML - Formulário Resposta</title>
  8.  
  9.     <style type="text/css">
  10.         body {
  11.             font-family: Arial, sans-serif;
  12.             font-size: 16px;
  13.             background-color: #f0f0f0;
  14.         }
  15.         .container {
  16.             max-width: 800px;
  17.             margin: 0 auto;
  18.             padding: 20px;
  19.             background-color: #fff;
  20.             box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  21.         }
  22.         label {
  23.             display: block;
  24.             margin-bottom: 5px;
  25.             font-weight: bold;
  26.  
  27.         }
  28.        
  29.  
  30.     </style>
  31.     <script type="text/javascript">
  32.        
  33.         function exibeMsg(){
  34.             alert("Olá, obrigado por seus dados.");
  35.         }
  36.     </script>
  37.  
  38. </head>
  39.  
  40. <body onload="exibeMsg()">
  41.  
  42.     <div class="container">
  43.  
  44.     <h1>Cadastro de Endereço</h1>
  45.    
  46.    
  47.  
  48.         <label for="nome">Nome:</label>
  49.         <?php
  50.             $nome = $_POST["nome"];
  51.             echo $nome;
  52.         ?>
  53.        
  54.  
  55.  
  56.         <label for="endereco">Endereço</label>
  57.         <?php
  58.             $endereco = $_POST["endereco"];
  59.             echo $endereco;
  60.         ?>
  61.  
  62.         <label for="cidade">Cidade:</label>
  63.         <?php
  64.             $cidade = $_POST["cidade"];
  65.             echo $cidade;
  66.         ?>
  67.        
  68.  
  69.         <label for="estado">Estado:</label>
  70.  
  71.         <?php
  72.             $estado = $_POST["estado"];
  73.             echo $estado;
  74.         ?>
  75.  
  76.        
  77.  
  78.         <label for="email">E-mail:</label>
  79.         <?php
  80.             $email = $_POST["email"];
  81.             echo $email;
  82.         ?>
  83.  
  84.        
  85.        
  86.    
  87.     </div>
  88.    
  89. </body>
  90.  
  91. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement