[php]
<?php
include "../config.inc.php";
$Query = mysql_query("SELECT cle,nom,mail,site,date,texte FROM message WHERE cle='$id'" );
if ($submit) {
include("../config.inc.php" );
$signe = mysql_query("UPDATE 'message' SET 'texte'='$texte' WHERE 'cle'='$id'" );
Header("Location: index.php" );
}
?>
<html>
<body bgcolor = "#6A6A6A">
<br>
<br>
<table width = 50% border=1 align=center cellpadding=5>
<tr>
<td width = 100% background="ressources\style\metal\titremetal.jpg" align=center><font color="000000" size="+2"> Signer le livre d'or de Nodashi </font></td>
</tr>
</table>
<br>
<br>
<?php
//traitement de la requete
while ($enreg = mysql_fetch_array($Query))
{
?>
<form method=post action="edit.php" name=enreg ">
<table width="35%" border="1" cellpadding="0" cellspacing="0" align="center" bgcolor="#999999" >
<td>
<table width="100%" border="0" cellpadding="4" bgcolor="#B5B5B5" background="ressources\style\metal\fondmetal.jpg">
<tr>
<td><? echo $id ?></td>
</tr>
<tr>
<td colspan=2><B>Nom/Pseudo : </B><? echo "<i>".$enreg['nom']."</i>"?></td>
</tr>
<tr>
<td colspan=2><B>Mail : </B><? echo "<i>".$enreg['mail']."</i>"?></td>
</tr>
<tr>
<td colspan=2><B>Site internet : </B><? echo "<i>".$enreg['site']."</i>"?></td>
</tr>
<tr>
<td><B>Commentaire : </B></td>
<td><textarea name="texte" size="20" rows="5" cols="30"><? echo $enreg['texte'] ?></textarea></td>
</tr>
<tr>
<td colspan=2 align=center><input type="submit" name="submit" value=" EDITER "></td>
</tr>
</table>
</td>
</table>
</form>
</body>
</html>
<?php
}
?>
[/php]
Pkoi ca edit pas le texte
---------------
:D