Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add a CAPTCHA to my PHP form?

Tags:

forms

php

captcha

My knowledge of php is not good and I need help.

I have this php form but I don't know how to add a CAPTCHA mechanism.

How do I achieve this?

like image 327
php form Avatar asked Feb 01 '10 19:02

php form


People also ask

How do I add Captcha to my form?

To add a CAPTCHA field to your form, open the sidebar inside Google Sheet and expand the Advanced Settings section. Turn on the option that says "Include CAPTCHA" and save your changes.

How can I use Captcha code in PHP?

Create PHP Captcha with GD LibrarySet captcha code in the PHP session. Generate a random number with 6 characters. This will be out security code. Create a basic captcha using the GD library built-in functions.


2 Answers

I really like Securimage is seems to work really well and does not require a third-party external service or javascript (unless you enable the new image feature). Also it can be configured to provide audio captcha for accessibility.

like image 67
meme Avatar answered Oct 05 '22 05:10

meme


Check this detailed guide about captcha implementation in PHP: http://www.the-art-of-web.com/php/captcha/

like image 45
John Mccandles Avatar answered Oct 05 '22 07:10

John Mccandles