Thanks for the replies in advance.
Let me clarify a bit more. I basically want to create a validate class, when I call the object $foo I would pass all the information from the $_POST array of the form, validate the data then store it in a new array referenced by calling the object
$foo->getArray('validatedArray')
I'm still thinking about how to approach this. Maybe instead of creating a validate class, I should really be creating a form class, where I basically store all the form data in an object, then pass the object to another class (validate) to validate the data, if the data isn't valid perhaps have another object (error) and return for correction.
$contact_formObj = new Form; // Called in contact.php
$contact_formObj($_POST); // Called in contact.php
// pass $contact_formObj to process.php
// store $contact_formObj in a session?
$validate_data = new Validate; // Called in process.php
$validate_data($contact_form); // Called in process.php
// Called in process.php or possibly returned to contact.php to display errors
$error_container = new ErrorContainer;
Hope this makes sense. I'll keep playing w/ the code and post any progress.
-z3R0