Fantastic, Geoff!  Thanks for the direction and the quick response.  I
quickly scanned the thread you mentioned and it looks like it will
work great.

On Jul 31, 6:45 pm, Geoff Ford <[EMAIL PROTECTED]> wrote:
> I have added section on Frequent Discussions for Multi-record forms.
>
> THe basics is you have to create the inputs yourseld rather than use
> the form helper.  Use a structure like data[Modelname][count]
> [fieldname] as the name of the input then loop over data["Modelname"]
> in the controller action.
>
> Geoff
> --http://lemoncake.wordpress.com
>
> On Aug 1, 8:52 am, tyhilltx <[EMAIL PROTECTED]> wrote:
>
> > Hi Bakers!  I need to have a small set of input fields that belong to
> > 1 model used 3 times in a view.  The business reason is that a user
> > can enter up to 3 different people's contact information along with
> > some other information in one form (one view).
>
> > My question is how do I set up the view (I'm using htmlhelper and yet
> > another validation process) for this.  I was doing it originally
> > numbering them after the model name (e.g. ['Agent1']['first_name'],
> > ['Agent2']['first_name'],['Agent3']['first_name']).  This is fine for
> > getting the data in the controller but I don't want to set myself up
> > for problems when I validate the different Agent sets of data.  You
> > know someone is going to enter data incorrectly and the form will need
> > to be redisplayed and I need to keep my data straight if that happens.
>
> > Thanks in advance for your suggestions and corrections.


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

Reply via email to