HTML Form Campo Select
Segue um exemplo de um formulário com campo select.Segue o codigo HTML deste formulário:
HTML code:
x
<form action="cadastro.php" method="POST">
<fieldset>
<legend>Exemplos de Campos (select, optgroup, option)</legend>
Escolha um veiculo:<br />
<select name="Veiculo">
<optgroup label="Carro">
<option val0ue="brasilha"> brasilha </option>
<option value="Uno" selected> Uno </option>
<option value="Camaro"> Camaro </option>
<option value="Fusca"> Fusca </option>
</optgroup>
<optgroup label="Motos">
<option value="Pop100"> Pop 1000 </option>
<option value="Zig-50"> Zig-50 </option>
<option value="Bereta"> bereta </option>
<option value="38"> 38 </option>
</optgroup>
</select><br />
<br />
<input type="submit" name="btn-enviar" value="Enviar" /><br />
</fieldset>
</form>
<fieldset>
<legend>Exemplos de Campos (select, optgroup, option)</legend>
Escolha um veiculo:<br />
<select name="Veiculo">
<optgroup label="Carro">
<option val0ue="brasilha"> brasilha </option>
<option value="Uno" selected> Uno </option>
<option value="Camaro"> Camaro </option>
<option value="Fusca"> Fusca </option>
</optgroup>
<optgroup label="Motos">
<option value="Pop100"> Pop 1000 </option>
<option value="Zig-50"> Zig-50 </option>
<option value="Bereta"> bereta </option>
<option value="38"> 38 </option>
</optgroup>
</select><br />
<br />
<input type="submit" name="btn-enviar" value="Enviar" /><br />
</fieldset>
</form>