close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validation SHow if

Thread began 10/30/2012 5:59 pm by nickj | Last modified 10/31/2012 12:31 pm by Jason Byrnes | 720 views | 11 replies |

nickj

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

Attached Files
Archive.zip
Sign in to reply to this post

nickj

Issue 2

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!

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

nickj

The Captcha works it's the Validation Show if message that fails.

contact.php

Sign in to reply to this post

nickj

Please test the form and mistype the captcha

Thanks for your fast response!

Nick

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the page and I can take a look to see what is wrong.

Sign in to reply to this post

nickj

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

Attached Files
Archive 2.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the code for the captcha is at lines 124 - 141:

php:
<?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.

Sign in to reply to this post

nickj

Still no joy:
email_eml_insert.php

Here is the code:

Attached Files
email_eml_insert.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...