I guess I'm misunderstanding also, but what was the problem with $form->inputs()?
If your using that database, that means model. $form->inputs() dumps inputs for all the form fields. -- Kevin Lloyd 3HN Designs http://www.3HNDesigns.com/ (214) 473-4207 On Jan 19, 2008 3:39 PM, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote: > > On Jan 20, 12:30 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > > On Jan 19, 2008 1:01 PM, R.RajeshJebaAnbiah > > > > <[EMAIL PROTECTED]> wrote: > > > I'm not sure, if you have understand my question. RoR based > > > frameworks allow easy creation/use of form when DB table is created. > > > But, I'm looking for a solution to create forms dynamically--something > > > as in LimeSurvey. > > > > I *think* I may have run into what you're talking about here. I'm > > building a section of a web site for voting on things (the simulation > > baseball league I am in has a vote during the off-season for changing > > league rules and rules for the game we use), and there can be any > > number of items on the ballot. > > > > So, while googling around looking for some help on this I found that > > you can use the following notation to create multiple instances of the > > same field: > > > > $form->input("{$x}.Model.field") > <snip> > > Multiple form inputs is one way of handling dynamic forms. But, I > was looking for more control--dynamic validations, etc. Since, the > user data are tied up closely with DB tables and models in RoR based > frameworks, I was thinking/looking for a generic and better approach > to handle it. > > Thanks for the suggestion anyway. > > -- > <?php echo 'Just another PHP saint'; ?> > Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/ > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
