My form is sending data to two tables, families and family_members. It's a registration form that will collect data relevant to the whole family ($this->data['Family']) and to the particular family member ($this->data['FamilyMember'][]). This particular form only has two 'fieldsets' for family members, the user and their partner.
Therefore my data should look like this: data['Family']['address'] data['Family']['city'] etc data['FamilyMember'][0]['firstname'] data['FamilyMember'][0]['dob'] etc data['FamilyMember'][1]['firstname'] data['FamilyMember'][1]['dob'] etc. My problem has arisen because the form helper is giving me nice Date, Month, Year select boxes, but has set the name of the select boxes as data[Family] rather than data[FamilyMember][0][dob][date] etc. This is the line in the view: $form->input('FamilyMember.0.dob', array('id' => 'FamilyMember.0.dob', 'dateFormat' => 'DMY', 'separator' => ' ', 'label' => 'Date of birth', 'selected' => null, 'minYear' => date('Y')-80, 'maxYear' => date('Y')-16)); So currently it gets to this field and overrides my data[Family] with the year from the select box. I tried setting "fieldName" in my $form->input, but it didn't do anything. Can anyone help? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---