title: Codeigniter get form field value from array fields not working
body: <p>I want get post fields value in my View, but all form did not get the value as well, i get an "Array" string in my form View when i click submit button.</p>
  
  <p><a href="https://i.stack.imgur.com/vyd7k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vyd7k.png" alt="enter image description here"></a></p>
  
  <p>I declared the fields in array => <strong>Controller</strong> :</p>
  
  <pre><code>$data6 = array(
       'no_lab'                    =&gt; $no_lab[$i],
       'low_sampling'              =&gt; $low_sampling[$i],
       'sampling_point'            =&gt; $sampling_point[$i],
       'sampling_tgr'              =&gt; $sampling_tgr[$i],
       'sampling_clk'              =&gt; $sampling_clk[$i],
       'sampling_analys'           =&gt; $sampling_analys[$i],
       'shift'                     =&gt; $shift[$i]
   );
  </code></pre>
  
  <p>And in my <strong>View</strong> i've set "set_value('array[]')", like this:</p>
  
  <pre><code>&lt;td&gt;
     &lt;input type="text" name="no_lab[]" id="no_lab" value="&lt;?php echo set_value('no_lab[]'); ?&gt;" required/&gt;&lt;/td&gt;
  &lt;td&gt;
     &lt;input type="text" name="low_sampling[]" id="low_sampling" value="&lt;?php echo set_value('low_sampling[]'); ?&gt;"/&gt;&lt;/td&gt;
  &lt;td&gt;
     &lt;input type="text" name="sampling_point[]" id="sampling_point" size="17" value="&lt;?php echo set_value('sampling_point[]'); ?&gt;"/&gt;&lt;/td&gt;
  &lt;td&gt;
     &lt;input type="text" name="sampling_tgr[]" id="sampling_tgr" value="&lt;?php echo set_value('sampling_tgr[]'); ?&gt;"/&gt;&lt;/td&gt;
  &lt;td&gt;
     &lt;div class="input-group clockpicker col-sm-12" data-autoclose="true" data-time-format="HH:mm"&gt;
       &lt;input type="text" name="sampling_clk[]" id="sampling_clk" value="&lt;?php echo set_value('sampling_clk[]'); ?&gt;" required/&gt;
         &lt;span class="input-group-addon"&gt;
         &lt;span class="glyphicon glyphicon-time"&gt;&lt;/span&gt;&lt;/span&gt;
     &lt;/div&gt;
  &lt;/td&gt;
  &lt;td&gt;
     &lt;input type="text" name="sampling_analys[]" id="sampling_analys" value="&lt;?php echo set_value('sampling_analys[]'); ?&gt;"/&gt;&lt;/td&gt;
  </code></pre>
  
  <p>reference to CI re-populating form: <a href="https://www.codeigniter.com/user_guide/libraries/form_validation.html" rel="nofollow noreferrer">https://www.codeigniter.com/user_guide/libraries/form_validation.html</a></p>
  
  <p>So, am i doing it wrong? i'm new to CI.</p>