Ver Mensaje Individual
  #7 (permalink)  
Antiguo 18/10/2007, 04:53
zasalamel
(Desactivado)
 
Fecha de Ingreso: septiembre-2007
Mensajes: 8
Antigüedad: 16 años, 7 meses
Puntos: 0
Re: Checkboxs dinamicos

<?php

if ($_POST['boton']) {

$select = array_keys($_POST['slect']);

foreach ($select as $key) {

echo "imprime el index del array -select- : ".$select;

// AKI DENTRO HAZ CON EL INDEX LO QUE QUIRAS,
//$KEY IRÁ LEYENDO TODOS LOS INDICES SELECCIONADOS...

}


<forulario>
<?php
for ($i=0; $i <4; $i++) {
echo "<input type=\"checkbox\" name=\"slect[".$i."]\">";
}
?>
<input type="submit" name="boton">
</formulario>



EDITO: NO E COMPROBADO EL CODIGO.

POR LO QUE PODRÍA CONSIDERARSE UNA IDEA SI ACASO NO TE FUNCIONA AVISA :)