Monday, November 30, 2009

Re: Captcha integration problem in cakePHP

I have had a quick scan through the code (I haven't used this before)
and it appears it is this line that does the validation:

function add() {
if (!empty($this->data) && $this->Captcha->protect()) {
$this->ModelName->save($this->data);
}
}

On Nov 30, 1:16 pm, Vidya N <vidyanp...@gmail.com> wrote:
> Thanks for your reply now I am getting.. captcha image...
>
> but how to check after submitting form whether the entered captcha is
> correct?.....
>
> Thanks,
> Vidya
>
>
>
> On Mon, Nov 30, 2009 at 6:42 PM, jburns <jeremybu...@me.com> wrote:
> > Make sure you have the line:
>
> > var $components = array('Captcha');
> > var $helpers = array('Captcha');
>
> > ..in the controller that is calling the component.
>
> > As a general help point, if you click the "Notice (8)" link, you'll
> > see a lot of useful information that can help track down an error.
>
> > On Nov 30, 7:40 am, Vidya N <vidyanp...@gmail.com> wrote:
> > > Hi, I am cakePHP learner..
> > > I am making an simple application like Quick post of jobs & *in* this I
> > want
> > > to implement the *Captcha* *in* my form.For this I help from the link :
> >http://bakery.*cakephp*.org/<goog_1259558951763>articles/view/improved-*
> > > captcha* <goog_1259558951763>-component
>
> > > I have added captcha.php file to helper and to component as mentioned
> > link
> > > above link...
>
> > > but I am getting Problem like below if I run,
>
> > > *Notice* (8) <javascript:void(0);>: Undefined variable: captcha
>
> > > *Fatal error*: Call to a member function input() on a non-object.
>
> > > Please anybody help me to sort out this..
>
> > > Thanks & Regards,
> > > Vidya
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.c om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: