https://github.com/serubin/simple-php-captcha
A simple php captcha script
https://github.com/serubin/simple-php-captcha
Last synced: 2 months ago
JSON representation
A simple php captcha script
- Host: GitHub
- URL: https://github.com/serubin/simple-php-captcha
- Owner: Serubin
- License: mit
- Created: 2016-02-06T18:15:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-06T18:55:42.000Z (over 9 years ago)
- Last Synced: 2025-01-31T21:35:17.708Z (4 months ago)
- Language: PHP
- Size: 96.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple PHP Catcha
## Usage
**In the html:**
Simply include the captcha directory (or index.php page) in an image tag and create a text/number input box.```html
![]()
```**In the server script (PHP):**
Check the incoming request value (in this examples case 'captcha') against the stored sessions value. Remember to include `session_start()` at the top of the php file.
```php
if($_REQUEST['captcha'] != $_SESSION['captcha'])
// send error
else
// process request
```