Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/12/2009, 18:26
Avatar de masterojitos
masterojitos
 
Fecha de Ingreso: julio-2008
Ubicación: Lima Callao Chucuito
Mensajes: 1.931
Antigüedad: 15 años, 9 meses
Puntos: 105
Respuesta: Hola a migos tengo un problema

Código html:
Ver original
  1. <form action="eliminar.php">
  2. <input type="check" name="dato[]" />
  3. <input type="check" name="dato[]" />
  4. <input type="check" name="dato[]" />
  5. <input type="submit" value="eliminar" />
  6. </form>

eliminar.php
Código php:
Ver original
  1. <?php
  2. foreach($_REQUEST['dato'] as $indice => $valor){
  3.     mysql_query("delete from tabla where id = '$valor'");
  4. }
  5. ?>

gracias por el karma :P

suerte.
__________________
Atte. MasterOjitos :ojotes:
Todo sobre Programación Web
Las ultimas tendencias en Efectos y Recursos Web: MasterOjitos Blog