Pesquisar neste blog

12/11/2022

Formulários com HTML5


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reccebendo dados por formulário</title>
</head>
<body>
<form action="processa.php" method="post">
<label>Text</label>
<input type="text" name="texto1" placeholder="Text">
<br>

<label>password</label>
<input type="password" name="senha">
<br><br>

<label>Oculto</label>
<input type="hidden" name="informacao_oculta" value="mensagem oculta">

<label>Select</label>
<select name="selecao">
<option value="1">Opção 1</option>
<option value="2">Opção 2</option>
</select>
<br><br>

<label>Radio</label><br>
<input type="radio" name="radio1" value="1">Valor 1 <br>
<input type="radio" name="radio1" value="2">Valor 2 <br>
<br>
<input type="checkbox" name="ck1" value="1">Valor 1 <br>
<input type="checkbox" name="ck1" value="2">Valor 2 <br>
<input type="checkbox" name="ck1" value="3">Valor 3 <br>
<br>
<input type="submit" value="Enviar" name="submit">
</form> <!--tag form-->

</body>
</html>
































Nenhum comentário: