Online Chat
 Call Us: 
Browse Submit a Ticket
Advanced Search
Rss Categories


Author: Eileen Wilde Reference Number: AA-00162 Views: 10326 Last Updated: 01/13/2011 05:52 AM 0 Rating/ Voters

CAPTCHA is a type of challenge-response test used to determine whether or not the user is a human. CAPTCHA requires that the user type the letters of a distorted image, with the addition of an obscured sequence of letters or digits that appears on the screen. To add it to your page you need to:

create field to enter CAPTCHA

<INPUT TYPE="text" name="mycaptcha"  VALUE="">

add CAPTCHA picture using this code:

<img src="../fpp/captcha.img.php">

then point in the config.php file in your form configuration section (not in general settings, this action is set individually for each form):

captcha_field = mycaptcha

You can configure CAPTCHA appearance in the global section of the config.php file.

captcha_background = yellow - sets background color of CAPTCHA image.
captcha_font_color = #0f0f0f - sets font color of CAPTCHA image.
captcha_font = times - sets font to use on CAPTCHA image.

You can set color by its name, or its hex number with leading #. Supported color names:

Black, Maroon, Green, Navy, Silver, Red, Lime, Blue, Gray, Purple, Olive, Teal, White, Fuchsia, Yellow, Aqua.

Supported fonts:

antiqua, baskerville, batang, bookman, calisto, cambria, centaur, century, chaparral, constantia, footlight, garamond, georgia, goudy_old, kozuka, lucida, minion
You can put button on your page to reload CAPTCHA without reloading the whole page, to do that you need to add this code nead CAPTCHA image:
<div style="width: 178px;">
<img src="../fpp/captcha.img.php" id="captcha_image" width="178"><br />
<input type="button" value="reload" onclick="document.getElementById('captcha_image').src = '../fpp/captcha.img.php?sid=' + Math.random(); return false" />

Where ../fpp/captcha.img.php is the path to the captcha.img.php file.

CAPTCHA is only available in the following licenses: Business, World Wide, ISP.