Autoriser un utilisateur a pouvoir remplir le sondage pour d'autres utilisateurs

This commit is contained in:
Simon Leblanc 2011-06-27 00:26:31 +02:00
parent 5d4e4bbc46
commit 497e72bf1f

View File

@ -495,10 +495,11 @@ if (!isset($_SERVER['REMOTE_USER']) || !$user_mod) {
echo '<tr>'."\n"; echo '<tr>'."\n";
echo '<td class="nom">'."\n"; echo '<td class="nom">'."\n";
if (isset($_SESSION['nom'])) { if (isset($_SESSION['nom'])) {
echo '<input type=hidden name="nom" value="'.stripslashes($_SESSION['nom']).'">'.stripslashes($_SESSION['nom'])."\n"; $nom = stripslashes($_SESSION['nom']);
} else { } else {
echo '<input type=text name="nom" maxlength="64">'."\n"; $nom = '';
} }
echo '<input type=text name="nom" maxlength="64" value="'.$nom.'">'."\n";
echo '</td>'."\n"; echo '</td>'."\n";