FeedBackForm & Captcha

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
MAKAPOH
Forum Members
Forum Members
Posts: 14
Joined: Thu Dec 17, 2009 7:47 am

FeedBackForm & Captcha

Post by MAKAPOH »

How to check Captcha in FeedbackForm Module?

From Captcha docs:
To show a captcha image:
// create a reference to a Captcha module object
$captcha = &$this->getModuleInstance('Captcha');
// show the captcha image
echo $captcha->getCaptcha();
To check the user input:
// create a reference to a Captcha module object
$captcha = &$this->getModuleInstance('Captcha');
// check the user input (the checkCaptcha method will return TRUE if $input is correct, FALSE if $input is incorrect)
$validated = $captcha->checkCaptcha($input);
how to call getModuleInstance method from ffForm class?

or how to use Callback-Function in FeedBack module to call captcha?
Last edited by MAKAPOH on Thu Dec 17, 2009 8:08 am, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”