"; } elseif (!preg_match('/^[A-Za-z ]+$/', $_POST['name'])) { $errorMessages .= "Your name may only be letters or the blank character
"; } // error check everything else return $errorMessages; } ?> COMP334 Lab 7: Validate

Lab 7: Validate

$errors

"; } else { //user input validates, display a dump of the POST variables echo "
";
   print_r($_POST);
   echo "
"; } ?>

Click here to return to lab7input.php page