Hello,
I am using Yii framwork.
What I want to do is,
I have a dropdown and one button.
on button click,
i want to send selected value of dropdown in url.
<div class='box'>
Change to another Skill Type<br> // IT IS DROPDOWN WITH VALUES AND ID of this input ype is 'change_skill_type_name'
<?php $form=$this->beginWidget('CActiveForm', array(
'htmlOptions'=>array(
),
));
$selectedOptions= CHtml::listData(SkillType::model()->findAll(array('order' => 'skill_type')),'skill_type','skill_type');
echo $form->dropDownList(SkillType::model(),'skill_type',$selectedOptions,
$htmlOptions=array('id'=>'change_skill_type_name','style'=>"width: 180px")
);
$this->endWidget();
?>
</div>
<!-- IN BELOW, I WANT VALUE OF b as VALUE FROM ABOVE DROPDOWN-->
<a href='index.php?r=Manager_team/EditSkill&sk=<?php echo $skills_id;?>&b='>
<?
echo CHtml::button('Change', array('id'=>'change','confirm' => 'Change skill type?','onclick'=>''));
?>
</a>
</div>
what should I do?