close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to combine google recaptcha with insert record using MySQLi

Thread began 12/14/2016 7:16 pm by Janet | Last modified 1/09/2017 1:09 pm by Ray Borduin | 653 views | 4 replies |

Janet

How to combine google recaptcha with insert record using MySQLi

I have a working "sign up" script that inserts a record and moves them on to a thank you page, but I need to add some sort of captcha element, as I am having some unwelcome entries.

I added the code for Google recaptcha, but it still lets people through without validating. I was wondering if you could give any advice on integrating the recaptcha into the insert record code on the page, or recommend an alternative to Google?

Web page and code in attachments

Sign in to reply to this post

Ray BorduinWebAssist

I don't see recaptcha added to the page, so I can't comment on what could have been wrong with it. It should be possible to implement using the recaptcha code examples from Google.

We offer a captcha tool with DataBridge that would be possible to use as well.

Sign in to reply to this post

Janet

Google ReCaptcha and Insert Record

Hi Ray,

Thanks for coming back to me. I had to take the page down because it was getting hit by spammers. I have put the link to a page showing the form with the Google reCaptcha added in a private message.

When I submit the form, the form performs perfectly, inserting the record and moving on to the correct file, but the reCaptcha is ignored. I believe I have everything in place for the reCaptcha (the correct link to the google javascript in the head and the recaptcha code in the body which shows up on the screen).

Is the form taking the insert record action before the reCaptcha can be confirmed? Or have I missed a step on the reCaptcha?

Thanks for any advice you can give. I am lost as to what to try next

Sign in to reply to this post

Ray BorduinWebAssist

You have to add php code to verify the recaptcha value. See: https://github.com/google/recaptcha/blob/master/examples/example-captcha.php

You have added the code to show the captcha, but missed the step of checking its value and showing any errors.

Sign in to reply to this post

Janet

I just wanted to say thanks for helping with this. I'm learning so much and loving the product!

I fixed the issue you highlighted, and also worked out I had to place the insert record code within the actual reCaptcha code, hope that makes sense.

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