Ok maintenant que ca marche pour INSERT, je me suis tenté de le faire sur DELETE FROM :
if (isset($_POST['submit2']))
{
//connection à la bdd
$connexion=mysql_connect("localhost","root","");
mysql_select_db("test",$connexion);
$id=$_POST['id'];
$requete="delete from liste where id=$id";
mysql_query($requete);
}
<form name="identite" method="post" action="<?php echo($_SERVER['PHP_SELF']); ?>">
<table border="0" cellspacing="0" cellpadding="0" align="left" id="form2" style="visibility:hidden">
<tr>
<td width="34" align="right"> Id </td>
<td>
<input name="id" type="text" class="textearea" id="id" size="3" maxlength="3">
<input type="image" src="suppr.gif" alt="suppression" name="submit2" value="Suppression">
<span class="separ"> *Saisir le n° de l'identité dans la liste à effacer</span>
</td>
</tr>
</table>
</form>
Et là il efface rien ...:p]