Introduction
In this article we will create a registration page with CAPTCHA implemented in it in PHP.
Before going forward we should know what is CAPTCHA?
CAPTCHA
Completely Automated Public Turing test to tell Computers and Humans Apart. A CAPTCHA is a program that protects websites against bots by generating and grading tests that humans can pass but current computer programs cannot. For example, humans can read distorted text but current computer programs can't.
Characteristics: A CAPTCHA is a means of automatically generating challenges which intends to:
- Provide a problem easy enough for all humans to solve.
- Prevent standard automated software from filling out a form, unless it is specially designed to circumvent specific CAPTCHA systems.
Here we use JavaScript for validation.
Table structure
Now let's move to the coding part.
For creating database connection:
Config.php
For creating random image: get_captcha.php
For Registration of users: registration.php
welcome.php
Output
![CAPTCHA in PHP]()
![CAPTCHA in PHP]()
Conclusion
So here we learn how create a registration page with CAPTCHA implemented in it in PHP.