Ver Mensaje Individual
  #6 (permalink)  
Antiguo 01/08/2009, 19:49
Avatar de pablolennin
pablolennin
 
Fecha de Ingreso: diciembre-2008
Ubicación: Trujillo
Mensajes: 169
Antigüedad: 15 años, 5 meses
Puntos: 1
Respuesta: pasar elementos de unaagina php a otra

cambia el cc.php y pon este ahi te elimina los que haz seleccionado

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Documento sin t&iacute;tulo</title> 
</head> 

<body> 
<table border="1" cellpadding="5" cellspacing="0"> 
<tr> 
<td bgcolor="#CCCCCC"> 
NOMBRE</td> 
<td bgcolor="#CCCCCC"> 
APELLIDOS</td> 
<td bgcolor="#CCCCCC"> 
SEXO</td> 
<td bgcolor="#CCCCCC"> 
CARRERA</td> 
</tr> 
<? 
require_once("cn.php"); 
cn(); 
$array=$_POST["cb"]; 
if(!isset(
$array)) 

    echo
"<script>alert('selecciona uno.'); 
    document.location='index.php'; 
    </script>"

    exit; 
}  
foreach(
$array as $k

    
$re=mysql_query("DELETE  FROM cliente WHERE idcliente='$k'"); 

?> 
</table> 
</body> 
</html>