jcramalho

Formulário para inserir em MongoDB

Jan 12th, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.56 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8"/>
  5.         <title>O meu primeiro formulário para inserir registos no MongoDB</title>
  6.     </head>
  7.     <body>
  8.         <h3>Registo de aluno</h3>
  9.         <form action="reg2mongo.php">
  10.             <label for="pnome">Primeiro nome:</label>
  11.             <input type="text" id="pnome" name="pnome"/>
  12.             <br/>
  13.             <label for="unome">Último nome:</label>
  14.             <input type="text" id="unome" name="unome"/>
  15.             <br/>
  16.             Sexo: <br/>
  17.             <input type="radio" name="sexo" value="masc"/> Masculino
  18.             <input type="radio" name="sexo" value="fem"/> Feminino
  19.             <br/>
  20.             Selecione os desportos que pratica:
  21.             <input type="checkbox" name="sport" value="Esgrima"/>
  22.             Esgrima
  23.             <input type="checkbox" name="sport2" value="Natação"/>
  24.             Natação
  25.             <input type="checkbox" name="sport3" value="BTT"/>
  26.             BTT
  27.             <input type="checkbox" name="sport4" value="Squash"/>
  28.             Squash
  29.             <br/>
  30.             Habilitações Académicas:
  31.             <select name="hacademicas">
  32.                 <option>Escolha uma</option>
  33.                 <option>Ensino Básico</option>
  34.                 <option>12º ano</option>
  35.                 <option>Licenciado</option>
  36.                 <option>Mestre</option>
  37.                 <option>Doutor</option>
  38.             </select>      
  39.             <input type="submit" value="Enviar"/>        
  40.         </form>
  41.     </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment