Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/03/2006, 15:47
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Formulario:

Código HTML:
<form name="respuestas" action="script.php" method="post">
    <input type="checkbox" name="resp1"><label>Respuesta 1<label> 
    <input type="checkbox" name="resp2"><label>Respuesta 2<label>
    <input type="checkbox" name="resp3"><label>Respuesta 3<label>
    <input type="checkbox" name="resp4"><label>Respuesta 4<label>
    <input type="submit" name="enviar" value="Enviar">
</form> 
script.php
Código PHP:
<?php
   
if(isset($_POST['resp1']) && isset($_POST['resp2']))
   {
        
//grabar los datos en la bd
   
}
?>