Thank you
I have done that and set the validation to 'when register button' pressed - however as soon as the page is loaded the validation error message appears and it doesn't matter whether I enter a duplicate email or not it fails every time.
This is my validation code;
<?php
if (isset($_POST["Register_x"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_CustomerRegistration_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateNM($totalRows_username . "",-1,0,"",",.",false,3);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"CustomerRegistration");
}
}
?>
This is the display error code;
<?php
if (ValidatedField('CustomerRegistration','CustomerRegistration')) {
if ((strpos((",".ValidatedField("CustomerRegistration","CustomerRegistration").","), "," . "3" . ",") !== false || "3" == "")) {
if (!(false)) {
?>
failed
<?php //WAFV_Conditional Customer_Registration.php CustomerRegistration(3:)
}
}
}?>