Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/04/2003, 09:43
Avatar de Cain
Cain
 
Fecha de Ingreso: enero-2002
Ubicación: Catalunya
Mensajes: 6.459
Antigüedad: 22 años, 4 meses
Puntos: 17
Solución 2:

Formulario:
Código PHP:
<form name="borra" action="borra.php" method="post">
<? while ($row=mysql_fetch_array($result) {
 echo 
"<input type=\"Hidden\" name=\"existe[]\" value=\"$row[$id]\"><input type=\"Checkbox\" name=\"$row[id]\">$row[nombre]";
 } 
?>
 <input type="submit">
</form>
Procesador:
Código PHP:
for ($i=0$i<count($existe); $i++) {
 if (isset($
$existe[$i])){$mata=mysql_query("DELETE FROM tabla WHERE id = $$existe[$i]");}

NOTA: No está testeada, pueden haber algunos errores.
__________________
M a l d i t o F r i k i