close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

CAPTCHA server validation is not working

Thread began 7/31/2020 10:56 am by sandy170299 | Last modified 8/01/2020 12:28 pm by Ray Borduin | 19 views | 7 replies |

sandy170299

CAPTCHA server validation is not working

I have a server validation on my contact form for my CAPTCHA. When the submit button is pressed, I'm using a validation type of Like Entry ($_SESSION['captcha_Security_Code_1']), and "is the same as" ((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"").

It's allowing the form to be submitted without the CAPTCHA. I've attached the form. Thank you.

Attached Files
contact-us.zip
Sign in to reply to this post

Ray BorduinWebAssist

Server validation will allow the form to submit. It just won't process any actions like sending emails unless the form is valid. In this form you don't have any other code than the validation, and you aren't displaying any failed validation messages on the page, so it doesn't appear to do anything.

If you added an email server behavior, then you would see that it only sends the email once the form is filled out correctly.

Sign in to reply to this post
Did this help? Tips are appreciated...

sandy170299

I did add an email server behavior after I posted this, and it still allows me to submit the form without the captcha. I am attaching it again.

Thank you.

Attached Files
contact-us.zip
Sign in to reply to this post

Ray BorduinWebAssist

You get the email when the form is filled out without captcha?

Sign in to reply to this post
Did this help? Tips are appreciated...

sandy170299

Yes. I removed all of the Captcha code and the email sends.

Sign in to reply to this post

Ray BorduinWebAssist

I'd need FTP access to debug this. It shouldn't send the email if you have the server validation in place and don't enter the correct captcha code.

Sign in to reply to this post
Did this help? Tips are appreciated...

sandy170299

To clarify, it goes through the process of sending the email, but no email is actually sent. It submits the form, but doesn't do anything. Please see PM for FTP. This is the page where the form is not working. http://websailer.com/numeroset/contact-us.php

FYI, in my session variables, I have 2 captcha security codes.

captcha_Security_Code 1 and captcha_Security_Code 2

When I remove the Captcha and all of the validation code, the email DOES send.

Sign in to reply to this post

Ray BorduinWebAssist

That is how it is supposed to work. Then you can add validation messages to the page to tell people when the validation has failed after the submit.

Sign in to reply to this post
Did this help? Tips are appreciated...

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