Re: Editing session data, 2 page form with submit

2008-04-30 Thread clrockwell
Also, does anyone know how I would reset this->data['Newproduct'] without actually saving the data. On every other edit page I have done, I am never writing the data to a session, just updating a database but it has always worked fine. I have to be missing something here. Thanks On Apr 30, 9:3

Re: Editing session data, 2 page form with submit

2008-04-30 Thread clrockwell
Thanks Sliv, I glanced at it but I'll take a more in depth look when i get to work tomorrow. I ended up 'solving' the issue by setting each individual field value on the actual edit form page using the session data. This resulted in me not needing to set $this->data['Newproduct'] in the controll

Re: Editing session data, 2 page form with submit

2008-04-30 Thread Sliv
Have a look at this approach: http://bakery.cakephp.org/leafs/view/32 --~--~-~--~~~---~--~~ 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 fr

Re: Editing session data, 2 page form with submit

2008-04-30 Thread clrockwell
One more try and fail: http://bin.cakephp.org/view/296703677 This populates the form, goes to the correct page after 'edit' and writes nothing to the session. I think this is more inline with your suggestion, Sliv. I changed the newproduct edit form fields to newproductedit. I'm at my ends wit

Re: Editing session data, 2 page form with submit

2008-04-30 Thread clrockwell
I also tried this: http://bin.cakephp.org/view/1428722274 Which does not write the new information. And the edit form is the exact same as the create form with the exception of the "action = ''" and instead of $form->end('submit'), I use $form->submit('Submit Edits', array('div' => false, 'name'

Re: Editing session data, 2 page form with submit

2008-04-30 Thread clrockwell
This: http://bin.cakephp.org/view/1061326765 redirects to confirm page but with exact same information stored in session On Apr 30, 7:47 am, Sliv <[EMAIL PROTECTED]> wrote: > It looks to me like you're just reading the value from the session > every time without checking the submitted data first

Re: Editing session data, 2 page form with submit

2008-04-30 Thread clrockwell
In my haste to seek help, I typed the function incorrectly (I was recalling from memory, notice the 'product' are all 'newproduct') This: http://bin.cakephp.org/view/980003581 causes a validation error to be thrown (I only have one field set up for validation right now) I thought this would be

Re: Editing session data, 2 page form with submit

2008-04-30 Thread Sliv
It looks to me like you're just reading the value from the session every time without checking the submitted data first Try something along the lines of: http://bin.cakephp.org/view/1454909160 --~--~-~--~~~---~--~~ You received this message because you are subscri

Editing session data, 2 page form with submit

2008-04-29 Thread clrockwell
I have been driving myself nuts with this, any help is very much appreciated! I have a two page form with a review page. Each page has a submit button that saves the data to a session and moves the user to the next page. The review page gives the opportunity to edit the information collected on