Here is a basic example of the formprocessor, this is a simple input.
In this example:
You Must Provide your name.
Your Name must only contain letters
You Must Provide your email address.
Your Email must be in the a@b.com format
You must provide a subject
Your subject must be at least 5 characters long
You must fill in the message text area
Your message must be greater than 10 characters long
Error:
!
!
!
!
EOD;
return $form;
}
$processor =& new FormProcessor(showForm());
try{
if(isset($_POST["submit"])) {
if ($processor->validate()) {
echo 'The Form Was Submitted, Wahey! Here is the $_POST data';
echo '