
License Agreement
tppCaptcha is an ASCII-art, non-graphical CAPTCHA system that works with PHP versions 4 and 5, does not require any image processing libraries and is very easy to integrate with your existing web site.
It does an excellent job of keeping nasty automated web bots from abusing your web site forms - blocking contact form spam, guestbook spam, and comment spam. It helps block all forms of automated website spam!
Website spam is a serious, growing problem. However, we feel it is a problem you can handle with a carefully considered CAPTCHA solution such as tppCaptcha. I also offer custom installation services.

License Agreement
tppCaptcha v1.0 - 10/19/2006
Installation
To install tppCaptcha, copy the files in the zip file you will receive to a folder, then ftp them into the folder on your web site that contains the form you want to protect.
At the top of the file that outputs the ASCII CAPTCHA, before any other codes including html, place the following code block
<?PHP
require_once( 'tppCaptcha.php' );
define( 'tppCaptchaUseSession', true );
define( 'tppCaptchaLength', 6 );
tppCaptchaStart();
?>
It is absolutely critical that there are no spaces or lines before the <?PHP.
Now, in your form (somewhere in the HTML of your page), between the opening form tag and the closing form tag at an appropriate place (visually) place this code to generate the form fields:
<pre style="font-size: .4em; font-weight: bold;"><?PHP echo tppCaptchaGenerate( 'giant' ); ?></pre>
<br />
Please enter validation code: <?PHP echo tppCaptchaFormField(); ?>
?>
That should be all you need to do on the form page.
If your processing page is part of your form page (in other words it submits to itself) then you need to copy the following code into the top block you added in the previous step. There is no need to duplicate the code however, so not all lines would need to be copied. If your processing page is a separate page, you will need to add the next block of code to the top of your processing page just like you did on the form page. In other words, at the top with no spaces before the block of code.
<?PHP
require_once( 'tppCaptcha.php' );
define( 'tppCaptchaUseSession', true );
define( 'tppCaptchaLength', 6 );
tppCaptchaStart();
if ( tppCaptchaVerify() == false )
{
?>Please enter a valid validation code -
Use your browser's back button to go back to the form to try again.<?PHP
exit();
}
?>
At this point, the rest of the processing script can be safely put as the script will exit if the validation code is wrong.There are obviously much more user-friendly ways of integrating this into forms than requiring someone to use their back button to re-fill all the fields on a form. That is outside the scope of this document. If you purchase our install service we try to be user-friendly in the way we install the script on your site.
For web site hosting I recommend - www.bluehost.com

Tim is as fast as greased-lightning, and worth every cent! Before I even had all of my images to him, he already had my scripts working properly. Now I can sleep tonight!