(Need a letter at least)";
}
$sticky[email] = htmlspecialchars(stripslashes($_POST[email]));
if (! ereg('^[[:graph:]]+@[[:graph:]]+$',$_POST[email])) {
$error = 1;
$msgemm = "(Should be summat@summat)";
}
# Decide what to do based on any inputs and error flags
if (! $error and $_POST[whatdo]) {
$response .= "YOUR ACTION AND ANSWERS ARE DONE NOW
";
}
if ($error and $_POST[whatdo]) {
$response .= "Please correct your entry
";
} else {
$response .= "Please enter some new information
";
$msgyou = $msgemm = "";
$sticky = array();
}
# Produce a table of all the values entered onto the form
$tabr = "
| $kname | ". htmlspecialchars(stripslashes($_POST[$kname])). " |