Get Selected Value Of Disable Drop Down


I need help on how to get selected value of disabled drop down on controller after submit the form. Sample code below with HTML:

<form id=“ProspectiveActivities_form” method=“POST” action="<?php echo Yii::app()->baseUrl . ‘/reports/prospectiveactivities’;?>">

    &lt;input type=&quot;hidden&quot; name=&quot;section&quot; value=&quot;standard&quot; /&gt;


echo CHtml::dropDownList(‘ProspectiveActivities[period]’, implode(’:’,array_values($this->getCurrentQuarter(FALSE))), $options, array(‘disabled’=>‘disabled’), array( ‘options’ => array( $default_value_monthly => array(‘selected’ => ‘selected’,)), ‘class’ => ‘periods-select’ )); ?>

<td class=“report-runlink” style=“border-right:none;”><?php echo CHtml::link("<img src = ‘". $run_image ."’>", “#”, array( ‘class’ => ‘run-link’, ‘id’ => ‘ProspectiveActivities_run’ )); ?></td>


Now I will get an array like Array ( [ProspectiveActivities] => Array ( [period] => 01 Jul 2013:30 Sep 2013 ) [action] => run ) when I will submit this form without disabled property of drop down.

If I use disabled property of drop down then It will not get anything.

Here I need the disabled drop down and get the same array. Can you please help me?

This is because of the nature of HTML forms, disabled controls does not submit.

One solution is to create a hidden control that holds the data and which always gets submitted. if you need to enable and disable the dropdown, you can use javascript/jQuery to populate the changes to the hidden control.