Hi,
I have two drop downs to select the desired age and i want the value of the two dropdowns to be displayed in a single field in the database. The drop downs are as follows:
<div class="row">
<?php echo $form->labelEx($model,'d_age'); ?>
<?php echo $form->dropDownList($model,'d_age',array('18'=>'18','19'=>'19','20'=>'20','21'=>'21','22'=>'22','23'=>'23','24'=>'24','25'=>'25','26'=>'26')); ?> to <?php echo $form->dropDownList($model,'d_age',array('18'=>'18','19'=>'19','20'=>'20','21'=>'21','22'=>'22','23'=>'23','24'=>'24','25'=>'25','26'=>'26'));?>
<?php echo $form->error($model,'d_age'); ?>
</div>
They are to select the desired age say 18 to 21 and i want it to be stored in the age field as a single value in the database.
thanks,