unchanged
Title
using multiple radio button
whenWhen we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton.we can useThe radioButtonList can be used forthat. Butthat, but if we need to use radioButton itself to place the button any where in aview. weview, we need tohaveinclude one more parameter in htmloptionarray()array(). **'uncheckValue'=>null** ##Usage ~~~ [php] echo CHtml::radioButton('btn', false, array( 'value'=>'1', 'name'=>'btnname', 'uncheckValue'=>null )); CHtml::radioButton('btn', false, array( 'value'=>'2', 'name'=>'btnname', 'uncheckValue'=>null ));echo CHtml::radioButton('btn',false,array('value'=>'1','name'=>'btnname','uncheckValue'=>null)); CHtml::radioButton('btn',false,array('value'=>'2','name'=>'btnname','uncheckValue'=>null));//we can use it in activeRadioButton(), too echo $form->radioButton($model, 'name', array( 'value'=>1, 'uncheckValue'=>null )); echo $form->radioButton($model, 'name', array( 'value'=>2, 'uncheckValue'=>null )); ~~~//or we can use it in activeRadioButton() echo $form->radioButton($model,'name',array('value'=>1,'uncheckValue'=>null)); echo $form->radioButton($model,'name',array('value'=>2,'uncheckValue'=>null)); ~~~ soso we can placeany where in athe radio button anywhere on the page. regards**support@nintriva.com** [Nintriva](http://www.nintriva.com)nitriva