title: multiple radio button on array codeigniter
body: <p>I want to make multiple radio-button on my CodeIgniter webapps, but this value is <code>null</code> after I submit my form.</p>
  
  <p><strong>This is my view on codeigniter apps</strong></p>
  
  <pre><code>&lt;?php $no=0; foreach ($catsub_1_isi as $list2_1a_1a): $no++ ?&gt;
  
  &lt;form role="form" method="post" action="&lt;?php echo base_url('c_QA_roe/simpan_list'); ?&gt;"&gt;
      &lt;input type="hidden" name="WSDetailID[]" value="&lt;?php echo $kode_detail;?&gt;" class="form-control"&gt;
      &lt;input type="hidden" name="WSHeaderID[]" value="&lt;?php echo $judul-&gt;WSHeaderID;?&gt;" class="form-control"&gt;
      &lt;input type="hidden" name="AppDate[]" value="&lt;?php $tgl=date('Y-m-d-H-i-s'); echo $tgl; ?&gt;" class="form-control"&gt;
      &lt;input type="hidden" name="InputDate[]" value="&lt;?php $tgl=date('Y-m-d-H-i-s'); echo $tgl; ?&gt;" class="form-control"&gt;
      &lt;input type="hidden" name="InputUser[]" value="&lt;?php echo $UserName; ?&gt;" class="form-control"&gt;                                                     
      &lt;input type="hidden" name="WSListID[]" value="&lt;?php echo $list2_1a_1a-&gt;WSListID;?&gt;" class="form-control"&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;?php echo $no;?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $list2_1a_1a-&gt;Subject;?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $list2_1a_1a-&gt;Standard;?&gt;&lt;/td&gt;
          &lt;td align="center"&gt;
              &lt;div class="radio"&gt;
              &lt;input type="text" name="YesNo[&lt;?php echo $list2_1a_1a-&gt;WSListID;?&gt;]" value="0"&gt;
              &lt;input type="radio" name="YesNo[&lt;?php echo $list2_1a_1a-&gt;WSListID;?&gt;]" class="minimal" value="&lt;?php echo $list2_1a_1a-&gt;Value;?&gt;" checked&gt;Y
              &lt;input type="text" name="YesNo[&lt;?php echo $list2_1a_1a-&gt;WSListID;?&gt;]" value="0"&gt;
              &lt;input type="radio" name="YesNo[&lt;?php echo $list2_1a_1a-&gt;WSListID;?&gt;]" class="minimal" value="&lt;?php echo $list2_1a_1a-&gt;Value;?&gt;"&gt;N
              &lt;/div&gt;
          &lt;/td&gt;
          &lt;td align="center"&gt;
              &lt;select name="IsRedudance[]"&gt;
                  &lt;option value="0"&gt;-&lt;/option&gt;
                  &lt;option value="&lt;?php echo $list2_1a_1a-&gt;Value;?&gt;"&gt;Yes&lt;/option&gt;
              &lt;/select&gt;                                               
          &lt;/td&gt;
          &lt;td align="center"&gt;
              &lt;select name="IsUse[]"&gt;
                  &lt;option value="YES"&gt;Yes&lt;/option&gt;
                  &lt;option value="NO"&gt;No&lt;/option&gt;
              &lt;/select&gt;                                                           
          &lt;/td&gt;
      &lt;/tr&gt;
  
  &lt;?php endforeach;?&gt;
  </code></pre>
  
  <p><strong>This is my controller on codeigniter apps</strong></p>
  
  <pre><code>public function simpan_list()
  {
      $WSDetailID     = $this-&gt;input-&gt;post('WSDetailID[]');
      $WSHeaderID     = $this-&gt;input-&gt;post('WSHeaderID[]'); 
      $WSListID       = $this-&gt;input-&gt;post('WSListID[]'); 
      $IsYes          = $this-&gt;input-&gt;post('IsYes[]');
      $IsNo           = $this-&gt;input-&gt;post('IsNo[]');
      $IsRedudance    = $this-&gt;input-&gt;post('IsRedudance[]');
      $IsUse          = $this-&gt;input-&gt;post('IsUse[]');
      $AppDate        = $this-&gt;input-&gt;post('AppDate[]');
      $InputDate      = $this-&gt;input-&gt;post('InputDate[]');
      $InputUser      = $this-&gt;input-&gt;post('InputUser[]');
      $Yes            = $this-&gt;input-&gt;post('YesNo[]');
      $No             = $this-&gt;input-&gt;post('YesNo[]');
  
      $data = array();
  
      $index = 0; 
      foreach($WSDetailID as $datanis)
      { 
          array_push($data, array(
          'WSDetailID'    =&gt;$datanis,
          'WSHeaderID'    =&gt;$WSHeaderID[$index],
          'WSListID'      =&gt;$WSListID[$index],
          'IsYes'         =&gt;$Yes[$index], 
          'IsNo'          =&gt;$No[$index],          
          'IsRedudance'   =&gt;$IsRedudance[$index],
          'IsUse'         =&gt;$IsUse[$index],
          'AppDate'       =&gt;$AppDate[$index],
          'InputDate'     =&gt;$InputDate[$index],
          'InputUser'     =&gt;$InputUser[$index],
          ));
  
          $index++;
          var_dump($data['IsYes']);
      }
  }
  </code></pre>
  
  <p>on my controller i'am confused about POST data on <code>$YesNo</code> especialy variable for multiple radio-button, so I tried to make <code>post('YesNo[]')</code> Is this true? but the value is still null </p>