https://github.com/litto/captcha
Simple Captcha for PHP website
https://github.com/litto/captcha
Last synced: about 1 month ago
JSON representation
Simple Captcha for PHP website
- Host: GitHub
- URL: https://github.com/litto/captcha
- Owner: litto
- Created: 2022-02-07T06:54:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-07T07:16:39.000Z (almost 4 years ago)
- Last Synced: 2025-06-12T12:50:41.463Z (5 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Captcha
Simple Captcha for PHP website
## How to Install?
You can Install it via composer by typing:-
composer require litto/captcha:v2.0
## How it works?
In the form just add:-
Enter Code
In the form submission function, just do like this:-
session_start();
$text=$_SESSION["vercode"] ;
unset($_SESSION["vercode"]);
$captcha = $_POST['txtCode'];
if($captcha==$text)
{
// Save Function
}else{
//captcha Validation Error
}