ajout d'un placeholder pour le nom

This commit is contained in:
pyg77 2013-03-14 14:12:09 +01:00
parent 11ade09d51
commit ccacf1a072

View File

@ -496,9 +496,9 @@ if (! ( USE_REMOTE_USER && isset($_SERVER['REMOTE_USER']) ) || !$user_mod) {
if (isset($_SESSION['nom'])) {
$nom = stripslashes($_SESSION['nom']);
} else {
$nom = '';
$nom = 'Votre nom';
}
echo '<input type=text name="nom" maxlength="64" value="'.$nom.'">'."\n";
echo '<input type="text" name="nom" maxlength="64" value="'.$nom.'" onfocus="if (this.value == \'Votre nom\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \'Votre nom\';}" >'."\n";
echo '</td>'."\n";