Cancellazione Multipla Con Checkbox
-
Puoi postare il codice completo?
-
-
posto solo la parte del ciclo altrimenti è troppo lungo:
<form enctype="multipart/form-data" name="formcancella" action="<?=$PHP_SELF?>" method="post"> <?php while($row2=mysql_fetch_array($result2)){ ?> <table width="950" height="20" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="8" bgcolor="<?php echo $colore_sfondo; ?>"></td> </tr> <tr> <td height="20" align="right" bgcolor="<?php echo $colore_sfondo; ?>"> <table width="950" height="20" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="250"> <img src="../images/icona_elenco_triangolo_grigio.gif" width="10" height="10" border="0"> <?=$row2['ragione_sociale']?> </td> <td width="450"> <?php if ($row2['indirizzo']!=""){ ?><?=$row2['indirizzo']?><?php }?> <?php if ($row2['cap']!=""){ ?> - <?=$row2['cap']?><?php }?> <?php if ($row2['provincia']==""){ ?> - <?=$row2['citta']?><?php }?> <?php if ($row2['comune']!=""){ ?> - <?=$row2['comune']?><?php }?> <?php if ($row2['provincia']!=""){ ?> - (<?=$row2['provincia']?>)<?php }?> </td> <td width="100"> <a href="admin_ins_anagrafica2.php?id=<?=$row2[id_login2]?>&pagina=6" class="tre">segue</a> </td> <td width="150"> <?php $id = $row2[id_anagrafica]; ?> <table width="230" height="20" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="230" align="left"><input type="checkbox" name="delete[]" value="<?php echo($id); ?>"> <span class="testo_rosso_bold3">Elimina <?=$id?></span></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td height="8" bgcolor="<?php echo $colore_sfondo; ?>"></td> </tr> <tr> <td height="1" bgcolor="#999999"></td> </tr> </table> <?php } ?> <table width="950" height="20" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="8"></td> </tr> <tr> <td height="1" bgcolor="cccccc"></td> </tr> <tr> <td height="8"></td> </tr> <tr> <td height="30" align="center"> <input type="hidden" name="cancella" value="1"> <input name="submit" type="submit" class="pulsante" value="cancella"> </td> </tr> <tr> <td height="8"></td> </tr> <tr> <td height="1" bgcolor="cccccc"></td> </tr> <tr> <td height="8"></td> </tr> </table> </form> <?php } ?>
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi