Wednesday, October 14, 2009

Re: Submitting form data to a preview page before adding to database

On Wed, Oct 14, 2009 at 4:36 AM, aylaujp <aylaujp@gmail.com> wrote:
>
> I have this registration form (user/add/) that allow users to add
> username, contact info and info about themselves. It works well and
> all when I want to submit it directly to the database, but now I want
> to add another step in there, a Preview.  So it would be Form >
> Preview/Edit > Publish.
>
> Here's the flow:
> 1. User is presented with a form (say user/add/) to add name, contact
> info, description about themselves, etc.
> 2. When they are done filling in the info, they click a Preview
> button
> 3. It bring them to a Preview page where they can see what they added
> and then they can choose to click the Edit or Publish button
> 4. Pressing Edit would return to the form for changes and pressing
> Publish will then submit to the database
>
> What's an approach for this? (..)

Another way to do this could be, in your action, just save the
form values (in a session), redirect to the view page that have
the same fields as hidden values. So the submit/confirm
action saves the data and a cancel/edit get back to the first
action.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate