Captcha creator

CAPTCHA CREATOR

Professional PHP Captcha Script

 
  Home     Download     Order     Demo     How to install     Customize     FAQ     Contact

How to install the captcha php script

This is a step by step tutorial on how to install the captcha script, for webmasters who do not have advanced knowledge of PHP and HTML. We will explain the process gentle without getting too technical, you should be able to have the captcha on your existing web forms within minutes.

Basically, to add the captcha on a web form we need to do three things.

1. Step One.

We need to upload a few needed files to your webserver. This include backgrounds, fonts, and the actual scripts that will draw the captcha images. Inside the CaptchaCreator.zip file you will find a folder named "captcha", you need to upload this entire folder to the root directory of your web server. This "captcha" folder contains all needed files to generate the captcha images on your website.
After you upload the folder to your website, you can make a simple test to see a captcha image by accessing the following URL:

http://www.yourwebsite.com/captcha/captchac_code.php

The above URL will only show the captcha image alone, without any input field around it.

Ofcourse you need to replace yourwebsite.com with your actual domain name. You can paste the above URL in your web browser, then replace the yourwebsite.com with your domain name, and you should see the captcha image.

If you can not see the captcha image, there is a problem, please see the FAQ and if the problem is not solved there, contact us.

2. Step Two.

We need to show the captcha image, and an input field on your form. The best position to display the captcha code is just at the end of your web form, before the submit button.

To do this, you need to copy and paste the following HTML Code into your actual form. A easy way to do it, is to type 'captchacodehere' exactly in the place where you want the captcha on your page, then view the HTML source code of your page either with your Web Editor or with some external Text Editor, search for 'captchacodehere' and then replace it with the following code:


The above HTML code is a table that has the captcha image in the left, and the input field in the right. After pasting it, you can change the text color and the background color of the table to fit the layout of your website.

Now you can upload your web form to your website, and it should display the captcha code.

3. Step Three.

We now need to make your web form actually compare the captcha code entered by user with the captcha code generated by your website. The first two steps above, will show a new unique captcha code on your webform each time is displayed, but we also must do this comparison to check if the code entered by the visitor is valid.

For this, we need to paste a bit of PHP code to the file that is processing the form. Sometimes there are two separate files ( ex. contactus.html and contactus.php ) that are working together, and other times there is a single file ( ex. contactus.php ) that is doing both the form display and processing.

To keep this simple, we will paste the code right at the very beggining of the file, before anything else. Some advanced webmasters who know well PHP might want to customize the code, and to move it down into their code structure.

To paste this code, just select it with your mouse, copy it, then open the php file with a text editor and paste it just at the verry beggining before anything else.

Now, upload the php file to your webserver, and the Captcha Creator code is installed.

If you have problems, please do not hesitate to contact us. We are glad to help you.


Home | Order | Examples | FAQ | Contact Us | Related websites
Copyright © 2006-2010 Captcha Creator. All rights reserved. Last update: March 25, 2010