After reading the list archive
http://www.nabble.com/Zend_Captcha-td20300142.html#a20300142 , I
figured out my mistake. Now I have made changes and code looks like
this
================
...
...
...
        //first create an image type captcha
        $captchaimg = New Zend_Captcha_Image('captchaimg');
        $captchaimg->setFont(APPLICATION_PATH . '/captcha/fonts/tahoma.ttf');
        $captchaimg->setImgDir(APPLICATION_PATH . '/captcha/images');
        $captchaimg->generate();

        //create user input for captcha and include the captchaimg in form
        $adcaptcha = New Zend_Form_Element_Captcha('adcaptcha', array(
            'captcha' => $captchaimg));
        $adcaptcha->setLabel('Please enter the 5 letters displayed below:');
        $adcaptcha->setRequired(true);
...
...
...
============================================

As you can see, i have copied the font to application itself. Now form
displays with "Please enter the 5 letters displayed below" but no
image is shown.

Checking in '/captcha/images' shows no image have been generated.
Isn't that this folder should have generated images?

What is wrong now?

Please can somebody guide me.

Thanks

-- 
=======================
Registered Linux User #460714
Currently Using Fedora 8, 10
=======================

Reply via email to