Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/01/2013, 07:34
Avatar de andres_15_
andres_15_
 
Fecha de Ingreso: septiembre-2008
Ubicación: Cali
Mensajes: 232
Antigüedad: 15 años, 7 meses
Puntos: 7
Pregunta Formularios (radio,checkbox)

buen día, tengo un pequeño problema tengo un formulario en el cual pregunto el estado civil, entonces di 4 opciones (soltero,casado, unión libre,viudo) y los coloque con etiquetas input y de valor radio, pero el problema es que solo quiero que se marque 1 y al probarlo deja que se marquen todos,¿Alguna solución?. Adjunto el script.

Código HTML:
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<title>Nuevo Empleado</title>
</head>
<body>

	<fieldset>
		<legend>
			Empleado
		</legend>	

	

		<form action="" method="post">

			<label for="ced">
				Identificación <input type="text" name="id">
			</label>

			<label for="ced">
				Fecha <input type="date" name="fe" format="">
			</label>

			<label>
				Primer Nombre <input type="text" name="pn">
			</label>
			
			<label>
				Segundo Nombre <input type="text" name="sn">
			</label>

			<label>
				Primer Apellido <input type="text" name="pa">
			</label>

			<label>
				Segundo Apellido <input type="text" name="sa">
				<br>
			</label>

			<label>
				Estado Civil  <br>
				Soltero <input type="radio" name="Sol" value="sol">
				Casado <input type="radio" name="cas" value="cas">
				Unión Libre <input type="radio" name="ul" value="ul">
				Viudo <input type="radio" name="viu" value="viu">
			</label>
		
		</form>
	</fieldset>

</body>
</html>