Validation SHow if
Show if for Captcha not working, I've rebuilt the pages and reinstalled Data Bridge from scratch.
This page was built with Databridge. Here is a link contact.php?fail=true
Please steer me in the right direction.
Thanks,
Nick
Show if for Captcha not working, I've rebuilt the pages and reinstalled Data Bridge from scratch.
This page was built with Databridge. Here is a link contact.php?fail=true
Please steer me in the right direction.
Thanks,
Nick
How do I get the field to remember the content when the captcha fails. It's a cookie right?But the field already has validation!
The CAPTCHA seems to be working now.
If you are using the latest version of form builder or data bridge it should automatically do this for you... but to get it to retain values after failed validation you just have to go to the bindings panel and find the "Validated Form" bindings and set the form element fields to the associated validated field values.
The Captcha works it's the Validation Show if message that fails.
contact.php
Please test the form and mistype the captcha
Thanks for your fast response!
Nick
Please attach a copy of the page and I can take a look to see what is wrong.
contact2.php was make from scratch and works.
email_eml_insert.php was made with DataAssist Create Pages and does not work. when an wrong text is typed into the catcha the page inserts to the database, which it should not, returns to the form without showing the error message! It also does not send the email.
email_eml_insert.php was only altered to add the captcha and validation show if.
Thanks for looking into this for me
Nick
the code for the captcha is at lines 124 - 141:
<?php require_once("../webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("../webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php
if ((isset($_POST["Insert"]) || isset($_POST["Insert_x"]))) {
$WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."?invalid=true";
$_SESSION['WAVT_emailemlinsert_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateEM((isset($_POST["email_eml"])?$_POST["email_eml"]:"") . "",false,1);
$WAFV_Errors .= WAValidatePN((isset($_POST["phone_eml"])?$_POST["phone_eml"]:"") . "",false,true,false,2);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"emailemlinsert");
}
}
?>
it should be moved to line 1.
Still no joy:
email_eml_insert.php
Here is the code:
you have 2 instances of server validation on this page.
You should only have 1 instance that includes the email, phone number and Captcha validation, instead of adding a second captcha instance of the validation.
delete the second server validation instance, then edit the first one to add captcha validation to it.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.