Thanks Ray
Have added <input name="pot" type="text" value="" style=" visibility:hidden;"> just inside the opening <form> and then added the server validation
<?php
if ((isset($_POST["PatientQuestionnaire_submit"]) || isset($_POST["PatientQuestionnaire_submit_x"]))) {
$WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."?invalid=true";
$_SESSION['WAVT_contact_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["Name"])?$_POST["Name"]:"") . "",true,1);
$WAFV_Errors .= WAValidateRQ((isset($_POST["Telephone"])?$_POST["Telephone"]:"") . "",true,2);
$WAFV_Errors .= WAValidateEM((isset($_POST["Email_Address"])?$_POST["Email_Address"]:"") . "",true,3);
$WAFV_Errors .= WAValidateLE(((isset($_POST["pot"]))?$_POST["pot"]:"") . "", . "",true,4);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
}
}
?>
but for some reason the addition of the server validation is causing the page to error - just a blank screen
As soon as I remove
$WAFV_Errors .= WAValidateLE(((isset($_POST["pot"]))?$_POST["pot"]:"") . "", . "",true,4);
the page renders fine....