close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

captcha validation stops working

Thread began 5/23/2012 6:21 am by john70964 | Last modified 5/25/2012 1:42 am by john70964 | 1318 views | 6 replies |

john70964

captcha validation stops working

I have created a fairly standard CSS Formbuilder file using Dreamweaver UE.

At first this form worked correctly but suddenly maybe after changing the captcha selection to refresh the captcha image I now cannot get the captcha text entered accepted.

Message is: Entered text does not match; please try again

This is the third time this has happened today.

I removed the Question validation method to try to make sure it was a captcha problem

I attach the zipped file and wonder if the error can be spotted.

Thank you

John

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

john70964

I noticed the error concerning spry is coming up when this page is reopened.

Maybe this is what is causing the problem.

I can see the files under Results but cannot see how they can be removed/deleted.

I tried clear results but they still come back when the file is reopened.

Perhaps these need removing in the code?

Sign in to reply to this post

john70964

Just a bit more.
I deleted the javascript spry code from the page and when I open the page I no longer get the warning. However the captcha will still not allow the page to proceed.

Sign in to reply to this post

Jason ByrnesWebAssist

the code that creates the captcha image:

php:
<img id="capt1"  src="webassist/captcha/wavt_captchasecurityimages.php?width=200&height=50&field=Security_Code_1&bgcolor=FFFFFF&transparent=0&bgimage=&gridfreq=20&gridcolor=000000&gridorder=behind&noisefreq=20&noisecolor=000000&noiseorder=behind&characters=5&charheight=&font=fonts/MOM_T___.TTF&textcolor=000000" alt="security code" width="200" height="50" />




also sets the name of the captcha session variable. this code passes a url variable named "field":
field=Security_Code_1

the value of the field variable is used in the captcha session variable name:
captcha_<field value>

so the name of the captcha session being created is:

captcha_Security_Code_1


In the server validation behavior, you are using the "captcha_Security_Code" session variable instead, you will need to edit the server validation and set the like entry validation to use the captcha_Security_Code_1 session variable.

Sign in to reply to this post

john70964

Thanks Jason explanation, that is most helpful.

It is strange after I read your advice I changed the WA validations, tested and all was OK.

I then decided to make a few changes to the form with html editor and discovered the form would not send the email.

I then found the "like" entry in WAvalidations had changed to an email field. This happened two or three times.

Image attached

btw what is the function of the hidden field?

Sign in to reply to this post

Jason ByrnesWebAssist

the validation you have highlighted is the regular expession validation, not the like entry validation.


the regular expression validation makes sure that the hidden element is empty. It is a technique called Honey Pots validation. If an automated script where filling in your form, it would expect all fields to require a value and add a value to the hidden field. The regular expression validation prevents this.

Sign in to reply to this post

john70964

Yes sorry the wrong validation was highlighted in the image.

I dont really understand what is being said about the honey pots validation give me time....

I was more interested in why the "like" value seem to change into the "email" value after some form changing.

Its not so important now as I will know what to look for in the future if this happens again.

Many thanks for the explanations

John

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