[Conception] Problème avec input type="text"
Salut tt le monde, j'ai un problème vraiment bisard, voici le code:
Code:
1 2 3 4 5 6 7 8 9 10 11
| $sql = 'SELECT nom, commentaire, contact FROM client where nom="'.$_GET['modifier'].'";';
$result = mysql_query($sql) or die('Erreur SQL !<br />'.$sql.'<br />'.mysql_error());
$array = mysql_fetch_array($result);
echo '<table class="tableau"><tr><td><form action="?page=ajoutClient" method="post" class="lien"></td>';
echo '<tr><td>Code client : <input type="text" name="codeCli" size="40" value="'.$array[0].'"><br /><br></td>';
echo '<tr><td>Commentaire : <input type="text" name="commentaire" size="40" value="'.$array[1].'"><br /><br></td>';
echo '<tr><td>Contact : <input type="text" name="contact" size="40" value="'.$array[2].'"><br /><br></td>';
echo '<tr><td><input type="submit" name="ajout" value="Modifier"></td>'; |
Le problème est que quand j'ai ca "04 50 33 33 33 Mme DUPOND Sandrine " dans mon $array[2], il y a seulement "04 50 33 33 33" dans ma zone de texte alors que quand la valeur de mon tableau comment par du texte j'ai tout.