Re: Form fields after bad submit
I think the $this->data is getting null after the submission. Check the $this->data. Regards, Krishnan Nair = Cake Bake --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Form fields after bad submit
Thanks Adam, I forgot to reply back with my success. I ended up rebaking the view and things were fine after that. I can't remember what I had messed up with my coding, but hopefully this will help another noob. al On Nov 2, 3:23 am, Adam Royle <[EMAIL PROTECTED]> wrote: > Make sure you post back to the same action the form is on, and you > aren't redirecting between when the validation error occurs and the re- > display of the form. > > Cheers, > Adam > > On Nov 2, 8:55 am, Al <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm using Cake 1.2 RC3. > > > In a signup form after a submit, (after a validation error occurs) all > > of the text that the user tried to submit is cleared. How can I get > > that to stay after a validation error so that they can just correct > > the mistake they made an resubmit? > > > For some reason I though that cake handled that automagically, but > > maybe I'm not doing something right.. Any suggestions? > > > Thanks, > > al > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Form fields after bad submit
Make sure you post back to the same action the form is on, and you aren't redirecting between when the validation error occurs and the re- display of the form. Cheers, Adam On Nov 2, 8:55 am, Al <[EMAIL PROTECTED]> wrote: > Hi, > I'm using Cake 1.2 RC3. > > In a signup form after a submit, (after a validation error occurs) all > of the text that the user tried to submit is cleared. How can I get > that to stay after a validation error so that they can just correct > the mistake they made an resubmit? > > For some reason I though that cake handled that automagically, but > maybe I'm not doing something right.. Any suggestions? > > Thanks, > al --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Form fields after bad submit
Hi, I'm using Cake 1.2 RC3. In a signup form after a submit, (after a validation error occurs) all of the text that the user tried to submit is cleared. How can I get that to stay after a validation error so that they can just correct the mistake they made an resubmit? For some reason I though that cake handled that automagically, but maybe I'm not doing something right.. Any suggestions? Thanks, al --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---