Sunday, February 20, 2011

Preview Data before submission into db

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.

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!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate