![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/10/2007, 04:53
|
(Desactivado) | | Fecha de Ingreso: septiembre-2007
Mensajes: 8
Antigüedad: 17 años, 4 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 :) |