voting/vote/include/step1-login.php
Bradley M. Kuhn ea2e2e9d9f Some users reported a problem of accidentally pasting in whitespace.
The right fix, of course, is have the code strip whitespace, but this note is
a useful thing in the meantime.
2014-02-10 18:01:31 -05:00

19 lines
693 B
PHP

<?php
function step1_do () {
global $email;
global $tmp_token;
$result = "<h2>Step 1/4 - Login</h2>\n";
$result .= "<p>Please login using the informations that were sent to you by e-mail. (Note: be sure that no whitespace is placed at the start nor end of either input box below.)</p>\n";
$result .= "<div class=\"votedata\">\n";
$result .= "<p><label for=\"email\">E-mail: </label><input type=\"text\" name=\"email\" value=\"".htmlspecialchars ($email)."\" /></p>\n";
$result .= "<p><label for=\"tmp_token\">Vote token: </label><input type=\"text\" name=\"tmp_token\" value=\"".htmlspecialchars ($tmp_token)."\" /></p>\n";
$result .= "</div>\n";
return $result;
}
?>