Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 General
 Design issues
 Captcha on Contact Page
Author « Topic »  

DTPwarrior
Advanced Member

USA
298 Posts

Pre-sales questions only
(More Details...)

Posted - 03/14/2017 :  13:02:28  

Is there some simple script that I can add to my contact.php page that will cause the Captcha feature of the ECT to work on that page? The Captcha feature works great on all the pages that I have selected in the Main settings.

We get bombed on our contact page every now and then and its happening right now. Would love to have the Captcha feature work on that page as well.

Thanks for any help you can provide.


Doug
[url]http://www.paintandpowderstore.com[/url]

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 03/14/2017 :  14:20:19  
Hi Doug,
Download and install this - http://www.fastsecurecontactform.com/download-php-script

You can use your existing keys for the built in recaptcha feature within the form you create. Make a donation if you're happy with it, the guy has really put some serious time into developing this.



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

DTPwarrior
Advanced Member

USA
298 Posts

Pre-sales questions only
(More Details...)

Posted - 03/14/2017 :  15:03:08  

Thanks Phil. I will give it a try.


Doug
[url]http://www.paintandpowderstore.com[/url]

insight
ECT Moderator

USA
4479 Posts

Posted - 09/28/2017 :  11:20:00  
If you've been using this you should probably update it or just get rid of it, see the authors notes here: http://www.fastsecurecontactform.com/download-php-script

Peter

ServeLink
Professional ecommerce web hosting for ASP & PHP
https://servelink.com

Take a look at our image upload/resize tool for the ASP cart
https://servelink.com/clients/cart?gid=7

ochiburi
Starting Member

Spain
1 Posts

Pre-sales questions only
(More Details...)

Posted - 12/11/2017 :  23:11:18  
Bump. I also have this requirement to put a captcha on my contact page. If the method described here is no longer reliable is there a better way? Cheers, L

Laurence Campbell

Andy
ECT Moderator

95440 Posts

Posted - 12/12/2017 :  01:08:20  
Hi Laurence

You could have a look at the other contact forms suggested here https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=78268

Andy

Please feel free to review / rate our software

dbdave
ECT Moderator

USA
10468 Posts

Posted - 12/12/2017 :  06:15:50  
If your form has a landing page, I can show you how to use the google recaptcha very easily with the same keys you use for your store.
You could use it anywhere on your site and it's very simple.

dbdave
ECT Moderator

USA
10468 Posts

Posted - 12/12/2017 :  06:36:08  
Ok, you need a thanks, landing page for your contact form, but here is what you can do.

Get your site key from google - it's the same site key you would use in your admin.
Google actually lets you list multiple websites where you can use this site key.

In the head of your page where your contact form is, add this
<script src='https://www.google.com/recaptcha/api.js'></script>

Then anywhere in your form, add the recaptcha feature (usually the last input in your form)
<div class="g-recaptcha" data-sitekey="xxxxxxxxxxxx_xxxxxxxxxxx_xxxxxxxxxxx"></div>
be sure to insert your site key in that space there....

Then make sure your form is going to a thanks page on submit.
example (form name="contactform" method="post" action="contact-thanks.asp")

Lastly,
Add the code below to your landing page where your form results are processed.
(this is the .asp version)
<%
If Request.Form("g-recaptcha-response") = "" Then
Response.write("<p class=""results"">Sorry, but you did not complete the Captcha to prove you are human.<br />Please go back to try again</p>")
Response.End
End If
%>
Form results processed here.....


You should be able to do this check with .php and javascript as well.
It's quite simple.




Edited by - dbdave on 12/12/2017 06:39:05

tommieboyz
Advanced Member

128 Posts

Pre-sales questions only
(More Details...)

Posted - 08/14/2019 :  08:47:44  
What is the correct way to do this for a contact form with PHP. I get 20-30 nonsense spam contact form submissions per day. I am not very knowledgeable about making the changes.

dbdave
ECT Moderator

USA
10468 Posts

Posted - 08/14/2019 :  09:34:43  
The instructions I posted above were actually weak. They mostly work for humans and not bots... LOL

I was able to make changes on my end and make use of the ECT logic for handling the captcha.
I am using it on an .asp form with a separate thanks.asp page. I get zero spam on my forms for months now.
Do you have a custom form for your contact page?
I can take a look but I think it's javascript so will likely work for .php.
I can lookup my changes in a bit and share them.

David

tommieboyz
Advanced Member

128 Posts

Pre-sales questions only
(More Details...)

Posted - 08/14/2019 :  10:35:55  
Here is contact form:
https://dogtagmachines.com/contact-us/
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.05 seconds. Snitz Forums 2000