Customize the Validation PHP code and adding to my own form?
Hello!
I've followed the instructions for adding the Captcha to my own form and it's working just fine. I'd like to add the PHP Validation to my own form as well, but am a little confused as to what to do here.
For Example:
With this code from lines 82 -94 of sample_contactus.php :
<input name="seconddblock" id="seconddblock" type="text" style="display:none" value="" />
<?php
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
<span id="emailServerError" class="textfieldServerError">Please provide your email addess so we can get back in touch with you.</span>
<?php //WAFV_Conditional contact.php contact(2:)
}
}
}?>
Is "seconddblock" defined in the CSS SpryValidationTextField.css or the SpryValidationTextarea.css? Does this have to be form specific and need to be in there? I'm using my own form formatting. Also what does "contact" refer to? (That isn't the id of the sample_contactus.php form.) And what does php //WAFV_Conditional contact.php contact(2:) refer to?
Just trying to reverse engineer this PHP code and I guess I need it a little more spelled out.
I'm also wondering if there is more explanation for customization or for the PHP code in any of the documentation? Am I missing something?
Thanks!
Carlene