I'm trying to populate form fields from the session variables..
I have a scenario like this.
1. User fills the form.
When the user clicks next button, form fields are saved to the session
variable.
2. User is displayed with the data he entered before to confirm.
3. If the data is correct, it proceeds to save the data. otherwise, it will
display edit page.
In edit page, form fields will be populated by the data from the session
variables. If the
process finishes, user
will go the confirmation page, and repeats step 2.
4. when user confirms the data, set method in the model is called and save
method is called.
In step 3, how can I populate form fields from the session variables ?..
I've read about form and html helpers, and the documentation says that html
helper is deprecated.. so I look to form helper.
In form helper, afaik, there's no way to set form fields from variables..
Correct me if I was wrong.or somebody has a better idea to solve my problem
??
Thanks...
I use cakephp 1.2
--
View this message in context: http://old.nabble.com/Populating-field-from-session-variables-tp26601639p26601639.html
Sent from the CakePHP mailing list archive at Nabble.com.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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
No comments:
Post a Comment