By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,587 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,587 IT Pros & Developers. It's quick & easy.

Implementing PHP Captcha

mikeinspain
P: 21
Hi Guys

I have a client who's existing site has a html contact form using "sps-mailsend.asp". It has a form validation script in place but is still being spammed and therefore would like to pop a "Captcha" script in.

http://spanish-property-sales.net/enquire.html

I am uncomfortable with ASP and not sure how to perhaps intergrate PHP into this page. I have been asked to go in and tidy this site up together with some SEO work, so the original work is not my own..

I would apprecaite if someone could perhaps point in the right direction or recommend any particualr script?

Thanks

Mike
Jun 28 '07 #1
Share this Question
Share on Google+
7 Replies


epots9
Expert 100+
P: 1,351
at the end, your best bet would be to put a secruity box, have random questions (or letters) appear, and validate if the inputted answer matches, if it does the form will submit, if it doesn't it halts and the form doesn't submit.
Jun 28 '07 #2

pbmods
Expert 5K+
P: 5,821
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as 'question' actually get FEWER responses?).

Heya, Mike.

Check out re-Captcha, which has a free PHP plugin for any script here.
Jun 28 '07 #3

mikeinspain
P: 21
at the end, your best bet would be to put a secruity box, have random questions (or letters) appear, and validate if the inputted answer matches, if it does the form will submit, if it doesn't it halts and the form doesn't submit.
epots9.. thanks for replying.. In your opinion how would you go about doing as you suggested?

thanks

mike
Jun 28 '07 #4

mikeinspain
P: 21
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as 'question' actually get FEWER responses?).

Heya, Mike.

Check out re-Captcha, which has a free PHP plugin for any script here.
pbmods.. thanks for the tip..

i will check out the re-captcha site.. thanks

mike
Jun 28 '07 #5

Motoma
Expert 2.5K+
P: 3,235
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as 'question' actually get FEWER responses?).

Heya, Mike.

Check out re-Captcha, which has a free PHP plugin for any script here.
I was reading up on that re-Captcha and it sounds pretty cool!
Great link!
Jun 28 '07 #6

epots9
Expert 100+
P: 1,351
epots9.. thanks for replying.. In your opinion how would you go about doing as you suggested?

thanks

mike
well if u have a database, u would have to create a table with columns (id, question, answer)...id auto increment. put simple questions (easy answers) and their answer in the table (put as many as u want).

Then in your PHP create a random number from 1 to the number of rows u have. Then create a query statement:
[PHP]$statement = "SELECT question, answer FROM valid WHERE id=".$randNum";";[/PHP]

if u don't have a db, use a text file, eash line would have a question(delimiter)answer. It be the same as above just with a random line.

good luck
Jul 3 '07 #7

kovik
Expert 100+
P: 1,044
I was reading up on that re-Captcha and it sounds pretty cool!
Great link!
Isn't re-captcha the one where they're using it to create e-books? Or am I thinking of something else?
Jul 3 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.