Advertisement
wellington23

Formulário

Dec 12th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.08 KB | None | 0 0
  1. <?php session_start()?>
  2. <!DOCTYPE html>
  3. <html lang="pt-br">
  4.     <head>
  5.         <meta charset="UTF-8">
  6.         <title>LeBron - Cadrasto</title>
  7.         <!--Import Google Icon Font-->
  8.         <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
  9.         <!--Import materialize.css-->
  10.       <link rel="stylesheet" href="materialize/css/materialize.min.css"/>
  11.     </head>
  12.    
  13.     <body>
  14.             <nav class="brown">
  15.                 <div class="nav-wrapper ">
  16.                     <div class="brand-logo">Padaria LeBron</div>
  17.                     <ul class="right">
  18.                         <li><a href="index.php"><i class="material-icons left">account_circle</i>Cadastro</a></li>
  19.                         <li><a href="consultas.php"><i class="material-icons left">search</i>Consultas</a></li>
  20.                     </ul>
  21.                 </div>    
  22.             </nav>
  23.         <!--Formulario de Cadastro-->
  24.         <div class="row container">
  25.                 <h1>Cadastro do Cliente</h1>
  26.                 <hr><br><br>
  27.                
  28.                 <?php
  29.                     if(isset($_SESSION['msg'])):
  30.                         echo $_SESSION['msg'];
  31.                         session_unset();
  32.                     endif;
  33.                 ?>
  34.                 <p>&nbsp;</p>
  35.                 <form method="post" action="banco_de_dados/create.php" class="col s12">
  36.                     Nome:
  37.                     <input type="text" name="nome" maxlength="40" required autofocus>
  38.                     Email:
  39.                     <input type="email" name="email" maxlength="50" required>
  40.                     Logradouro:
  41.                     <input type="text" name="logradouro" maxlength="50" required>
  42.                     CEP:
  43.                     <input type="number" name="cep" maxlength="8" required>
  44.                     Número:
  45.                     <input type="number" name="numero" maxlength="4" required>
  46.                     Complemento:
  47.                     <input type="text" name="complemento" maxlength="10">
  48.                     Bairro:
  49.                     <input type="text" name="bairro" maxlength="35" required>
  50.                     Celular:
  51.                     <input type="tel" name="celular" maxlength="11" required>
  52.                     Telefone(opcional):
  53.                     <input type="tel" name="telefone" maxlength="10">
  54.                     <br><br>
  55.                    
  56.                     <input type="submit" value="Cadastrar" class="btn brown">
  57.                     <input type="reset" value="Limpar" class="btn brown">
  58.                 </form>
  59.                
  60.         </div>
  61.            
  62.             <!-- ARQUIVOS JQUERY E JAVASCRIPT-->
  63.             <script type="text/javascript" src="materialize/js/jquery-3.3.1.min.js"></script>
  64.             <script type="text/javascript" src="materialize/js/materialize.min.js"></script>
  65.            
  66.             <!-- INICIALIZAÇÃO JQUERY-->
  67.             <script type="text/javascript">
  68.             $(document).ready(function(){
  69.                
  70.             });
  71.             </script>
  72.     </body>
  73. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement