An Example Form";
if ($fail == "")
{
echo "Form data successfully validated:
$forename, $surname, $username, $password, $age, $email.";
// This is where you would enter the posted fields into a database,
// preferably using hash encryption for the password.
exit;
}
echo <<<_END
Signup Form
Sorry, the following errors were found
in your form: