I tried implementing the Captcha component with PhpCaptcha and I'm
using CakePHP 1.2alpha and PHP 5.x. Its giving something like "X"
output for the captcha image in IE and Firefox.

On my controlller i have this:

class UsersController extends AppController {
        var $name = "Users";
        var $helpers = array("Html", "Form", "Countrylist");
        var $components = array("Captcha");

        function captcha_image()
    {
        $this->Captcha->image();
    }

        function captcha_audio()
    {
        $this->Captcha->audio();
    }
    ....
    ....
    ...
}

On my view:

<div>
      <img id="captcha" src="<?php echo $html->url('/users/
captcha_image');?>" alt="" />
                <a href="javascript:void(0);"
onclick="javascript:document.images.captcha.src='<?php echo $html-
>url('/users/captcha_image');?>?'
+Math.round(Math.random(0)*1000)+1">Reload image</a>
</div>

Also, the vendor needed is there and is being called. My gd library in
PHP 5 is already uncommented and running.

Maybe I'm missing something out here. Your help is greatly appreciated.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to