On the bin:
http://bin.cakephp.org/view/263117079

It validates the recaptcha first, before the fields. What I wanted is,
validate the fields then recaptcha.

I tried to move the codes..
if($this->Recaptcha->valid($this->params['form'])) {

after if ($this->Feedback->save($this->data)) {, then it worked! but, it
validates the fields first, then captcha, but it is already saving the data.

>if ($this->Feedback->save($this->data)) {
>if($this->Recaptcha->valid($this->params['form'])) {
> ..............

Any workarounds here? How can I validate the fields first, then recaptcha,
then save the data.

Regards,
--
Louie Miranda
 - Email: [email protected]
 - Web: http://www.louiemiranda.com

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 [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