An open API service indexing awesome lists of open source software.

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

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
```