title: how to give value of dropdown in controller in codeigniter
body: <p>i have this code in codeigniter (section of form in codeigniter controller) :</p>
  
  <pre><code>$this-&gt;data['SalaryType'] = array(
      'name' =&gt; 'SalaryType',
      'id' =&gt; 'SalaryType',
      'type' =&gt; 'text',
      'value' =&gt; $this-&gt;form_validation-&gt;set_value('SalaryType'),
  );
  $this-&gt;data['DefaultSalary'] = array(
     'name' =&gt; 'DefaultSalary',
     'id' =&gt; 'DefaultSalary',
     'type' =&gt; 'text',
     'value' =&gt; $this-&gt;form_validation-&gt;set_value('DefaultSalary'),
  );
  $this-&gt;data['Salary_options'] = array(
      'language' =&gt; 'monthly',
      'world' =&gt; 'world'
  );
  </code></pre>
  
  <p>(section of form in codeigniter view) :</p>
  
  <pre><code>  &lt;p&gt;
          Salary Type: &lt;br /&gt;
          &lt;?php echo form_dropdown($SalaryType,$Salary_options,'monthly');?&gt;
    &lt;/p&gt;
  
    &lt;p&gt;
          Default Salary: &lt;br /&gt;
          &lt;?php echo form_input($DefaultSalary);?&gt;
    &lt;/p&gt;
  </code></pre>
  
  <p>and i want use dropdown value but form send input value alone , and i can't access to dropdown value.<br>
  i check with <code>print_r($_POST);</code> but in post array observation 'DefaultSalary'.</p>