function displayMessage()
{ $displayHTML = getFormInfo();
print $displayHTML;
}
function getFormInfo()
{ $msg = "<p>Messages:<br />";
if (isset($_POST['firstname']))
{ $firstname = $_POST['firstname'];
$firstname_UC = strtoupper($firstname);
if ($firstname_UC == 'STEVE')
{ $msg .= "<br />You must be the instructor";
} else { $msg .= "<br />You must be the student named ".$firstname;
}
} else { $msg = "<br />none";
}