For cakephp 1.3, I've created a drop down for birthday like so
echo $form->input('User.birthday',
array(
'label' => __("form_birthday", "true") ,
'class' => 'date',
'selected' => 'empty',
'dateFormat' => 'DMY',
'minYear' => date('Y') - 90,
'maxYear' => date('Y') - 18,
'separator'=> " ",
'empty' => __("form_select", true),
)
);
which produces
<div class="input date"><label for="UserBirthdayMonth">Month & Year of Birth</label><select id="UserBirthdayDay" class="date" name="birthday">
<option value="">- Select -</option>
.....
</select> <select id="UserBirthdayMonth" class="date" name="birthday">
<option value="">- Select -</option>
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August</option>
<option value="09">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select> <select id="UserBirthdayYear" class="date" name="birthday">
<option value="">- Select -</option>
.....
</select></div>
Notice how the name attribute of the dropdowns are all "birthday". How can I change this in cake so that the name attributes of the three dropdowns above are not all the same? I'd like them be something like "birthday_month", "birthday_year" and "birthday_day".