What we do
The InnerShed Captcha
You are free to use this Captcha for commercial or non commercial uses. InnerShed do not guarantee any part of this code of software. Use at own risk! Enjoy!
Five easy steps to setup your Captcha:
- Register the Captcha with InnerShed
http://captcha.innershed.com/captcha_api.php?action=register- This will be return a hash code. - The Hash code should be stored in 'SESSION' or in 'INPUT'
- To display the Captcha
http://captcha.innershed.com/captcha_api.php?action=get_captcha&hash=HASH_CODE - Validate Captcha
http://captcha.innershed.com/captcha_api.php?action=validate&hash=HASH_CODE&password=CAPTCHA- Function will return "valid" or "invalid" - Fianlly - additional parameters (registration, GET array):
bg_color background color (default "ffffff")
fore_color text color (default "000000")
Example :
Captcha Status: PHP Source Code:
<?php
if($_SERVER['REQUEST_METHOD'] == "POST") {
$result = file_get_contents('http://captcha.innershed.com/captcha_api.php?action=validate&hash='.$_POST['hash'].'&password='.$_POST['captcha']);
echo $result;
}
$hash = file_get_contents('http://captcha.innershed.com/captcha_api.php?action=register');
echo file_get_contents('http://captcha.innershed.com/captcha_api.php?action=get_captcha&hash='.$hash);
echo '<form method="post" action="">';
echo '<input type="text" name="captcha" value="" />';
echo '<input type="hidden" name="hash" value="'.$hash.'" />';
echo '<input type="submit" value="send" />';
echo '</form>';
?>














