close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Captcha element does not validate when the correct code is entered

Thread began 6/29/2016 6:36 pm by markhaynes75235 | Last modified 7/13/2016 6:08 pm by Ray Borduin | 85 views | 4 replies |

markhaynes75235

Captcha element does not validate when the correct code is entered

Hi Ray and Team:
I'm working on an HR application upload page on our site that has a CSS FormBuilder on it. It was working fine until my HR people asked about uploaded applications. When I tested the page, I got the error: "Entered text does not match; please try again" even though the submitted string in the Captcha field was correct. I made sure that my Captcha image and input form have the same id value. In checking the <img> code I found that one of the parameters was "&field=Security_Code_1" so I made sure that my Captcha input form was named the same and set the <img id="Security_Code_1"... /> as well. This allows the form to pass validation, but instead of returning me to the confirmation page, it returned me to the form page. The URL for the page includes "?invalid=true" in the querystring.

Checking my directory where the file should have uploaded, I did not find the file, so apparently the form is not working properly and I need some pointers as to how to troubleshoot this issue.

Thank you for your help. I've attached a file with a link to the page in question.

Sign in to reply to this post

Ray BorduinWebAssist

I'd need to take a look a the .php page and validation settings to debug this.

Sign in to reply to this post

markhaynes75235

Originally Said By: Ray Borduin
  I'd need to take a look a the .php page and validation settings to debug this.  


Hi Ray:

Sorry it took a while to get back to you. I've zipped up the form page and the confirm page along with the associated webassist folder and contents. Thanks for taking a look at this!

Sign in to reply to this post

Ray BorduinWebAssist

Line 26:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security_Code"])?$_POST["Security_Code"]:"")) . "",((isset($_SESSION["captcha_Security_Code"]))?strtolower($_SESSION["captcha_Security_Code"]):"") . "",true,6);

Should be:
$WAFV_Errors .= WAValidateLE((strtolower(isset($_POST["Security_Code_1"])?$_POST["Security_Code_1"]:"")) . "",((isset($_SESSION["captcha_Security_Code_1"]))?strtolower($_SESSION["captcha_Security_Code_1"]):"") . "",true,6);

Sign in to reply to this post

markhaynes75235

Thanks, Ray:

Apparently the name of the element "Security_Code_1" was changed at some point and I didn't catch all of the instances in the validation Like Entry script. As usual, you were able to spot the issue and resolve it.

Thanks again!

Sign in to reply to this post

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...