Ray,
I found this and yes, it seems that I have it correct. Here is that line in my validation code.
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"vendorsform");
}
And my validation show if..
<?php
if (ValidatedField("vendorsform","vendorsform")) {
if ((strpos((",".ValidatedField("vendorsform","vendorsform").","), "," . "7" . ",") !== false || "7" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="Security_codeServerValidation">
Security code did not match image.</span>
<?php //WAFV_Conditional vendorsform.php vendorsform(7:)
}
}
}?>
This validation works but it refreshes my form if it fails.
I only have the one validation right now, and that is the Security_code validation. Could that be my problem? Do I have to validate the entire form fields to store it in the session. (That just occurred to me).
Thanks,
Troy