
Form Captcha Magic
Version 1.0
"Best way to prevent automatic
submission to your form"
Table of contents:
IMPORTANT NOTE:-
Did this title grab your attention? Good! It should really do! Please read on ...
You should be 100% sure that the files config.php, captcha.php, captchalib.php, check.php and the subdirectory admin are exists in the same directory of your web form
Give read/write permissions to the file config.php , this file will include your preferences, it needs to be accessible for reading and writing operations that can be done easily by right click on it and select properties
| Enter the code shown <input type="text" name="pfw_security_code" size="20"><p><img border="0" src="captcha.php" ></p> |
the above HTML code will generate the captcha picture which include the distorted text appears in your form along with a text box for your visitor to enter the security code he sees in the picture.
Open your form processor file , it's name should be mentioned in the "action" parameter of your <form> tag, please add the following PHP line at the top of the file just after the "<?php" line or after the validation code if you are aware of PHP scripting
| require_once("check.php"); |
Now open your form in the browser , you should see the captcha image, if you don't see the image please click here , the distorted text should be changed whenever you refresh your form , try to enter an invalid security code and see weather or not the error message appears correctly then try to add it correctly and see what happens , To change size, font, border, error message mode please display the admin page and make any changes you like at ../admin/admin.php
The administration page is used to change the characteristics of the captcha system so that you may tailor it to meet your expectations, the admin page includes 5 important sections :
| <!-- error alert goes here --> |
IMPORTANT NOTE:-
the above feature is not recommended unless the form doesn't make anything other than checking the security code which is very rare..
Q: I don't see the turing picture in my form
?
A: This might happened if you try to open the
form on your computer by just double clicking the form file, this wont display the
image because it is created by a PHP script need to be run on your server,
you need to share the folder which contain the form in your PC, then open your
browser and type
http://localhost/folder-name/form-name.html
or simply upload the form ,type the URL of it in the address bar of your
browser.
also you need to make sure that
- Your form is in the same directory of the files "config.php", "captcha.php", "captchalib.php" the font file "CENTURY.TTF" and the sub directory "admin" .
- You need to be sure that you add the code which display the image (step 7 in the installation) within the <form> </form>
Q: Can turing text
be case insensitive?
A: Yes, All you have to do is
display the admin page at /admin/admin.php and uncheck the "sensitive security
code comparison" box .
Q: Can the size of turing image and length
of security code be changed?
A: Yes, you can change
size , font , border and code length from your admin page
If you still have any question please contact us at sales@websitedatabases.com , we will respond within one business day .