prima di tutto grazie per la risposta

mi sto cimentanto con Ajax ma non riesco a recuperare il valore delle variabili

ti posto un po di codice:
[ CODE ] [ PHP ]
<form name=delmod action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">

<table id="minimalista-box">
<tbody>
<tr>
<th>Numero Protocollo</th><td><?php echo $numerop ;?></td>
</tr>
<tr>
<th>Data</th><td><?php echo $datapro ;?></td>
</tr>
<tr>
<th>Tipo Protocollo</th><td><?php echo $cate_pro ;?></td>
</tr>
<tr>
<th>Oggetto</th><td><?php echo $oggetto ;?></td>
</tr>
<tr>
<th>Categoria</th><td><?php echo $categoria ;?></td>
</tr>
<tr>
<th>Tipo Documento</th><td><?php echo $tipo ;?></td>
</tr>
<tr>
<th>Mittente</th><td><?php echo $cognome ." ". $nome ;?></td>
</tr>
<tr>
<th>Referente</th><td><?php echo $referente ;?></td>
</tr>
<tr>
<th>Destinatario</th><td><?php echo $destinatario ;?></td>
</tr>
<tr>
<th>Allegato</th><td><?php

if ($allegato=="") {

echo "nessun allegato presente";
}
else {
echo "<input type='image' src='immagini/pdf.bmp' widht='20' height='20'>";
}
?>
</td>
</tr>
</tbody>
</table>
[/CODE] [/PHP]

ho scritto questa funzione:


$(function() {
$("#delete").click(function() { // se si clicca su delete delete

// recupero la variabile id
var id = $("#id").val();



$.ajax({
type: "POST",
url: "delete.php",
data: 'id='+ id,
cache: false,

});

return false;
});
});

Non so come recuperare var id.....non posso mettere nel tag td un id....dovrei penso usare il getId e costruire un array????
Che confusione!!!!!