bob,

Try the Wizard Component in the bakery - 
http://bakery.cakephp.org/articles/view/wizard-component
There is also a tutorial - 
http://bakery.cakephp.org/articles/view/wizard-component-tutorial

It already does what you want.  It controls the flow from one page to
the next, gives you callbacks for setting up and processing the wizard
pages.  And stores the data in a session variable for you.

-cjames

On Mar 5, 5:10 am, bob <[EMAIL PROTECTED]> wrote:
> In cakephp 1.2, if i submit a form from the view to the controller, the data
> will be stored in $this->data. But If I will to span the form across 2
> views, how would I keep the form data from the first view?
>
> For example, if I have controller A and add1 and add2 as the actions. I want
> to set it up so that I have a form in add1 which the user submits, then goes
> to add2. In add2, when the user submits the form, only at this point will I
> save all the data to the database.
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to