diff --git a/studs.php b/studs.php index 190b52a6de5a8b7ec93b0d5f132f007a529b9c67..5b5c51f86315ec1df8ad2a082978a839fd8fe2d2 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";