Absolutely possible.
For verification, use something like ereg().
function ValidateInput($var, $type) {
trim($var);
if ($type=="name") { $Pattern = "^[A-Z][c]?[A-Z]?[a-z]+[a-z]$"; }
elseif ($type=="email") { $Pattern = "^([0-9a-z]+)([0-9a-z\._-]+)@([0-9a-z\._-]+)\.([0-9a-z]+)"; }
elseif ($type=="phone") { $Pattern = "^([0-9]{3})-([0-9]{3})-([0-9]{4})"; }
$valid=ereg($Pattern, $var);
return $valid;
}
You can do it all on one form. Send a different value to the script for each portion of the form submitted, then simply test for that variable. Here's the conditional tests for an entire paging routine built into one script:
if (!$submit)
//initial submission of form info here...
elseif (($submit) && (!($sendmsg)))
// verification of name, address, etc., here
elseif (($ValidCustomer=="1") && (!$sendmsg)){
// input of message here
elseif (($submit) && ($sendmsg=="yes"))
// message functions called here