When i select value from drop down list, and I submit form, i want my drop down list to have selected value, not to be on default value again. I try like this, but not working:
<?php echo $form->dropDownList($model, 'code', $countriesIssuedList, array('name'=>'countriesIssued'), $select = array($_POST['countriesIssued']));?> Also i would like to add a first value to be default, not from db, i want to do it in the code like this, array('empty'=>'--Select country--') but not working.
Thanks