Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/01/2010, 11:32
lalo0002
(Desactivado)
 
Fecha de Ingreso: diciembre-2008
Ubicación: Trujillo - Peru
Mensajes: 341
Antigüedad: 15 años, 4 meses
Puntos: 2
Eliminar marcando con check box

Estoy implementando una pagina parecida a la del msn, en la cual uno selecciona con un check la fila que desea eliminar y pone clic en el hipervinculo eliminar y elimina esa fila.

El codigo es el siguiente, pero no se como lograr hacer eso del check box q al seleccionar elimine

Los datos de la tabla son jalados de la bd en mysql
Código PHP:
       <form action="" method="post" name="">
        <table>
         <tr>
          <td width="100%">
           Filtro:
           <input type="text" name="search" id="search" value="" class="text_area" onchange="document.adminForm.submit();" />
           <button onclick="this.form.submit();">Ir</button>
           <button onclick="">Restablecer</button>
            </td>
           </tr>
          </table>
          <table class="adminlist" cellpadding="1">
           <thead>
            <tr>
             <th width="2%" class="title">#</th>
             <th width="3%" class="title"><input type="checkbox" name="toggle" value="" onclick="checkAll(2);" /></th>
             <th class="title">
              <a href="" >Nombre de Tipo</a>
             </th>
             <th width="50%" class="title" >
               <a href="" >Descripción</a>
               </th>
             <th width="5%" class="title" nowrap="nowrap">
               <a href="" >ID</a>
               </th>
            </tr>
           </thead>
<?php
                      
include('ProcesosPHP/ListaTipoUsuarios.php');
                    
                      while (
$row mysql_fetch_array($resultado))
                        {
                        
$contador $contador 1;    
                      
?>           
           <tbody>
            <tr class="row0">
             <td><?php echo $contador?></td>
             <td><input type="checkbox" id="cb0" name="cid[]" value="62" onclick="isChecked(this.checked);" /></td>
             <td><a href=""><?php echo $row['TIPO_NOMBRE']; ?></a></td>
             <td align="center"><?php echo $row['TIPO_DESCRIPCION']; ?></td>
             <td align="center"><?php echo $row['TIPO_CODIGO']; ?></td>             
            </tr>
            <?php ?>   
           </tbody>
          </table>
     
         </form>