title: combo box back to defauld after press submit button
body: <p>hallo sir i want to ask..</p>
  
  <p>i have problem with combobox,
  this is my code :</p>
  
  <pre><code>&lt;?php $abc =  date("Y"); ?&gt;
                  &lt;form action="dashboard" method="get"&gt;
                  &lt;select name="tahun" style="padding:3px;margin-right:20px"&gt;
                  &lt;option value="semua"&gt;   Pilih Tahun   &lt;/option&gt;                    
                  &lt;?php 
                  for ($x = 2014; $x &lt;= $abc; $x++) {
                  echo "&lt;option value=$x&gt;$x&lt;/option&gt;";
                  } 
                  ?&gt;                      
                  &lt;/select&gt;
  
                  &lt;select name="bulan" style="padding:3px;margin-right:20px"&gt;
                  &lt;option value="semua"&gt;Pilih Bulan&lt;/option&gt;  
                  &lt;?php 
                  for ($y = 1; $y &lt;= 12; $y++) {
                  echo "&lt;option value=$y&gt;$y&lt;/option&gt;";
                  } 
                  ?&gt;    
                  &lt;/select&gt;  
                  &lt;input type="submit" class="btn btn-info" style="border-color:red; background-color:red"&gt;
                  &lt;/form&gt; 
  </code></pre>
  
  <p>this is code dashboard.php sir (edited):</p>
  
  <pre><code>public function dashboard()
  {       
      $tahun = 'semua';
      $bulan = 'semua';
  
      if (isset($_GET["tahun"]))
      {
          $tahun = $_GET["tahun"];
      }
      if (isset($_GET["bulan"])) 
      {
          $bulan = $_GET["bulan"];
      }
  
      $data['all_cust'] = $this-&gt;bidashboard_model-&gt;all_cust($tahun, $bulan);
      $data['all_request'] = $this-&gt;bidashboard_model-&gt;all_request($tahun, $bulan);
      $data['piegraphkota_cust']=$this-&gt;bidashboard_model-&gt;piegraphkota_cust($tahun, $bulan);
      $data['piegraphkec_cust']=$this-&gt;bidashboard_model-&gt;piegraphkec_cust($tahun, $bulan);
      $data['piegraphkel_cust']=$this-&gt;bidashboard_model-&gt;piegraphkel_cust($tahun, $bulan);
      $data['piegraphkota_req']=$this-&gt;bidashboard_model-&gt;piegraphkota_req($tahun, $bulan);
      $data['piegraphkec_req']=$this-&gt;bidashboard_model-&gt;piegraphkec_req($tahun, $bulan);
      $data['piegraphkel_req']=$this-&gt;bidashboard_model-&gt;piegraphkel_req($tahun, $bulan);
      $data['count_cust']=$this-&gt;bidashboard_model-&gt;count_cust($tahun, $bulan);
      $data['count_custseb']=$this-&gt;bidashboard_model-&gt;count_custseb($tahun, $bulan);
      $data['count_req']=$this-&gt;bidashboard_model-&gt;count_req($tahun, $bulan);
      $data['count_reqseb']=$this-&gt;bidashboard_model-&gt;count_reqseb($tahun, $bulan);
      $data['jmlcustbaru']=$this-&gt;bidashboard_model-&gt;jmlcustbaru($tahun);
      $data['jmlreqbaru']=$this-&gt;bidashboard_model-&gt;jmlreqbaru($tahun);       
      $data['top5cust']=$this-&gt;bidashboard_model-&gt;top5cust($tahun, $bulan);
  
      $this-&gt;mylibrary-&gt;views('view_dashboard',$data);
  }
  </code></pre>
  
  <p>example : 
  after i select tahun=2016, bulan=1 and press button submit the selected item back to "pilih tahun" and "pilih bulan" again, but data still processed.</p>
  
  <p>how can i get selected item in view like what i choose (2016, 1) .
  sorry if my question not clear, my english is not good.</p>
  
  <p>regards,</p>
  
  <p>ridho  </p>