Quand que je fais client_edit.php?id=5 admettons. Dans les champs de texte, au lieu d apparaitre au complet le nom dison : Joe Sabine, il apparait juste Joe. On dirait quil prend pas les espaces..
Code:
Code :
<html><head><title>M&M Corp.</title></head><body bgcolor=silver>
<?
include("config.php3");
echo "<div align=center><br><font face=$txt_face size=$txt_size color=$txt_color><b>Détails client #$id:</b><br><br>";
mysql_select_db($db_base);
$sql = "SELECT * FROM clients WHERE id = $id";
$result = mysql_query($sql) or die(mysql_error());
while ($mmcorp = mysql_fetch_array ($result)) {
$nom = $mmcorp['nom'];
$email = $mmcorp['email'];
$sexe = $mmcorp['sexe'];
$ville = $mmcorp['ville'];
$telephone = $mmcorp['telephone'];
echo "<table border=0><form method=POST action=client_edit2.php?id=$id>";
echo "<tr>";
echo "<td width= align=right><font size=2 face=Verdana><b>Id:</b></font></td>";
echo "<td width=><font face=$txt_face size=$txt_size color=$txt_color>$id</td>";
echo "</tr>";
echo "<tr>";
echo "<td width= align=right><font size=2 face=Verdana><b>Nom:</b></font></td>";
echo '<td width=><input name=nom type=text value='.$nom.'></td>';
echo "</tr>";
echo "<tr>";
echo "<td width= align=right><font size=2 face=Verdana><b>E-Mail:</b></font></td>";
echo '<td width=><input name=email type=text value='.$email.'></td>';
echo "</tr>";
echo "<tr>";
echo "<td width= align=right><font size=2 face=Verdana><b>Sexe:</b></font></td>";
echo '<td width=><input name=sexe type=text value='.$sexe.'></td>';
echo "</tr>";
echo "<tr>";
echo "<td width= align=right><font size=2 face=Verdana><b>Ville:</b></font></td>";
echo '<td width=><input name=ville type=text value='.$ville.'></td>';
echo "</tr>";
echo "<tr>";
echo "<td width= align=right><font size=2 face=Verdana><b>Téléphone</b></font></td>";
echo '<td width=><input name=telephone type=text value='.$telephone.'></td>';
echo "<td width=><font face=$txt_face size=$txt_size color=$txt_color><input type=submit value=Sauvegarder></form></div>";
echo "</tr>";
echo "</table>";
}
?>
</body></html>
A++