Ray,
Thanks for having a look at this, I think this is the code you're wanting to look at:
<?php
if (isset($_POST["Realtor_submit_x"])) {
$WAFV_Redirect = "contact.php?invalid=true";
$_SESSION['WAVT_contact_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_First_Name"])?$_POST["fieldset_group_First_Name"]:"") . "",true,1);
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Last_Name"])?$_POST["fieldset_group_Last_Name"]:"") . "",true,2);
$WAFV_Errors .= WAValidateEM((isset($_POST["fieldset_group_Email"])?$_POST["fieldset_group_Email"]:"") . "",true,3);
$WAFV_Errors .= WAValidatePN((isset($_POST["fieldset_group_Phone_Number"])?$_POST["fieldset_group_Phone_Number"]:"") . "",false,true,true,4);
$WAFV_Errors .= WAValidatePN((isset($_POST["fieldset_group_Alternate_Phone"])?$_POST["fieldset_group_Alternate_Phone"]:"") . "",false,true,true,5);
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Own_a_home"])?$_POST["fieldset_group_Own_a_home"]:"") . "",true,6);
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Buying_a_home"])?$_POST["fieldset_group_Buying_a_home"]:"") . "",true,7);
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_Selling_a_home"])?$_POST["fieldset_group_Selling_a_home"]:"") . "",true,8);
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["fieldset_group_Security_code"])?$_POST["fieldset_group_Security_code"]:"")) . "",((isset($_SESSION["captcha_fieldset_group_Security_code"]))?strtolower($_SESSION["captcha_fieldset_group_Security_code"]):"") . "",true,9);
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["fieldset_group_nbsp"])?$_POST["fieldset_group_nbsp"]:"")) . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,10);
$WAFV_Errors .= WAValidateRX((isset($_POST["HiddenFields_fields"])?$_POST["HiddenFields_fields"]:"") . "","/.*/",false,11);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
}
}
?>