of OpenBSD Education
please fill in your desired username";
if (strlen($name) > 32)
$message .= "
username too long (32 character max)";
if (!preg_match('/^[A-Za-z][A-Za-z0-9]{2,31}$/', $name))
$message .= "username contains invalid characters (lowercase only, must start with a letter)";
if (isTaken($name) || forbidden_name($name) || bannedUsers($name))
$message .= "sorry, the username $name is unavailable";
// Check the e-mail address.
$email = trim($_REQUEST["email"]);
if ($email == "")
$message .= "please fill in your email address";
else {
$result = SMTP::MakeValidEmailAddress($_REQUEST["email"]);
if (!$result["success"])
$message .= "invalid email address: " .