From ccacf1a072865eb43c7363a7a2af0bc9585fec07 Mon Sep 17 00:00:00 2001 From: pyg77 <pyg@framasoft.net> Date: Thu, 14 Mar 2013 14:12:09 +0100 Subject: [PATCH] ajout d'un placeholder pour le nom --- studs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/studs.php b/studs.php index 190b52a6..5b5c51f8 100644 --- a/studs.php +++ b/studs.php @@ -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"; -- GitLab