Captcha Helper

The captcha helper lets you integrate an image-based captcha into your forms, to help prevent spam. Uses the third party SecureImage library.

Loading the Helper

$captcha = Loader::helper('validation/captcha');

Methods

$captcha->display()

Displays a dynamically generated image, for use with the captcha input text field.

$captcha->showInput()

Creates the text field for that instance of the captcha. This text input element automatically has the name "ccmCaptchaCode"

$captcha->check($field = 'ccmCaptchaCode')

Automatically checks the request array for the passed $field. Returns true if the field contains the same text as the current instance of the captcha, false if the captcha has been failed.

Recent Discussions on this Topic

SecureImage Captcha Accessibility Option

i know that SecureImage provides a blind accessible audio version of CAPTCHA - can anyone point me toward how to implement it on a Concrete5 form? My skill level is only HTML/CSS, not PHP and JS at this point so I may be missing something obvious to so…