Hi, I decided to ask for help here because I didn’t find my answer anywhere else.
I have to build survey using radio buttons, my table Answers has Answer_id, Answer_body , Question_id when i try to submit answers for multiple question_id only last question_id is submited.
Is there anyway to submit values from multiple Radio button lists - something like that:
<?php $model->question_id='1';?>
$form->radioButtonList($model,'answer_body',array('1'=>'1',
'2'=>'2','3'=>'3')); ?>
<?php $model->question_id='2';?>
$form->radioButtonList($model,'answer_body',array('1'=>'1',
'2'=>'2','3'=>'3')); ?>