Hey. you can do this by adding ajax script. For example if someone will
press preview button ajax script will send a form to view and return with
html.

2009/10/14 aylaujp <ayla...@gmail.com>

>
> 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? I am thinking of creating a Preview
> function in the controller which the form action points to but now am
> stuck as to how to grab the form data and display them.
>
> Any help will be helpful. Thanks!
>
> >
>


-- 
Pozdrawiam, Mateusz Kaczanowski

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to