Jason,
I actually have it working now, but to tell you the truth, I don't know why.
The first page worked fine until I set up the captcha for the second page and then neither worked. So, I totally removed the captcha and the validation for both pages and rebuilt them and now they work.
The validation for page 1
<?php
if (isset($_POST["submit1"]) || isset($_POST["submit1_x"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_contact_557_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["name1"]))?$_POST["name1"]:"") . "",false,1);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["company1"]))?$_POST["company1"]:"") . "",false,2);
$WAFV_Errors .= WAValidateEM(((isset($_POST["email1"]))?$_POST["email1"]:"") . "",true,3);
$WAFV_Errors .= WAValidatePN(((isset($_POST["phone1"]))?$_POST["phone1"]:"") . "",true,false,true,4);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["address1"]))?$_POST["address1"]:"") . "",false,5);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["city1"]))?$_POST["city1"]:"") . "",false,6);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["state1"]))?$_POST["state1"]:"") . "",false,7);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["comments1"]))?$_POST["comments1"]:"") . "",false,8);
$WAFV_Errors .= WAValidateLE(strtolower(((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"")) . "",strtolower($_SESSION['captcha_Security_Code_1']) . "",true,9);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contact_557");
}
}
?>
The validation for page 2
<?php
if (isset($_POST["submit1"]) || isset($_POST["submit1_x"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_quotation_178_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["firstname"]))?$_POST["firstname"]:"") . "",false,1);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["lastname"]))?$_POST["lastname"]:"") . "",false,2);
$WAFV_Errors .= WAValidateEM(((isset($_POST["email1"]))?$_POST["email1"]:"") . "",true,3);
$WAFV_Errors .= WAValidatePN(((isset($_POST["phone1"]))?$_POST["phone1"]:"") . "",true,false,true,4);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["address1"]))?$_POST["address1"]:"") . "",false,5);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["city1"]))?$_POST["city1"]:"") . "",false,6);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["state1"]))?$_POST["state1"]:"") . "",false,7);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["zip1"]))?$_POST["zip1"]:"") . "",false,8);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["services1"]))?$_POST["services1"]:"") . "",false,9);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["businessname"]))?$_POST["businessname"]:"") . "",false,10);
$WAFV_Errors .= WAValidateLE(strtolower(((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"")) . "",strtolower($_SESSION['captcha_Security_Code_1']) . "",true,11);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"quotation_178");
}
}
?>
The captcha field name/id is the same for both pages and the session is the same name. I must have done something out of sequence when they would not validate before?
On another note, something strange, maybe due to the server, HostGator, but the email that i set up for both pages would not send until i changed the from email to an address with the same domain name.