The CaptchaGen script is more like a perl module in that it needs to be 'required' by your main script. When you purchase CaptchaGen you will recieve a basic example script that do this but it is as simple as adding a few lines to the beginning of your main script and then add calls to the respective subroutines as needed.
You can see the example working at http://captchagen.cgiscripts4u.com/cgi-bin/captchagenexample.cgi, it initially presents the user with a Log In form and once it is submitted it checks the captcha entered is correct. The example does no more but if you have a basic knowledge of perl you will easily see from the code how to incorporate it into your existing scripts.
Adding the Captcha image to your forms can be done in three ways depending on your server and form.:
| | |
| Type in the characters you see above | |
|---|---|
<form action='/pathto/yourscript.cgi'> ..... <tr><td> <img id='captchaimage' name='captchaimage' src='/loading.gif'/> </td> <td> <input type=button value='Refresh Image' onclick='RefreshCaptcha();return false;'> </td></tr> <tr><th>Type in the characters you see above</th> <td> <noscript> Sorry as you do not have javascript enabled you are unable to use the captcha. </noscript> <input type="hidden" name="captchacoded" id="captchacoded" value=''> <input type="text" name="captcha" id='captcha' /> </td></tr> <tr><td colspan="2"><span id="captchasound"></span></td></tr> ... </form> <script src='/pathto/yourscript.cgi?jscaptcha=1' type='text/javascript'></script> <script> RefreshCaptcha(); </script>Which will return :
|
|
| Type in the characters you see above | |
|---|---|