Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/03/2010, 21:23
Avatar de xalupeao
xalupeao
 
Fecha de Ingreso: mayo-2008
Ubicación: Santiago, Chile
Mensajes: 749
Antigüedad: 16 años
Puntos: 12
Respuesta: Adyuda con checkbox

Código PHP:
Ver original
  1. <?
  2.     if(isset($_POST['Submit'])){
  3.         foreach ($_POST['seleccion'] as $id){
  4.             echo $id."<br>";
  5.         }  
  6.     }
  7. ?>
  8. <form action="" method="post">
  9.   1 <input type="checkbox" name="seleccion[]" value="1">
  10.   2 <input type="checkbox" name="seleccion[]" value="2">
  11.   3 <input type="checkbox" name="seleccion[]" value="3">
  12. <input type="submit" name="Submit" value="Enviar">
  13. </form>
__________________
Hosting en Chile en Silverhost - La solución en Hosting en Chile.