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.
I declared the fields in array => Controller :
$data6 = array(
'no_lab' => $no_lab[$i],
'low_sampling' => $low_sampling[$i],
'sampling_point' => $sampling_point[$i],
'sampling_tgr' => $sampling_tgr[$i],
'sampling_clk' => $sampling_clk[$i],
'sampling_analys' => $sampling_analys[$i],
'shift' => $shift[$i]
);
And in my View i've set "set_value('array[]')", like this:
<td>
<input type="text" name="no_lab[]" id="no_lab" value="<?php echo set_value('no_lab[]'); ?>" required/></td>
<td>
<input type="text" name="low_sampling[]" id="low_sampling" value="<?php echo set_value('low_sampling[]'); ?>"/></td>
<td>
<input type="text" name="sampling_point[]" id="sampling_point" size="17" value="<?php echo set_value('sampling_point[]'); ?>"/></td>
<td>
<input type="text" name="sampling_tgr[]" id="sampling_tgr" value="<?php echo set_value('sampling_tgr[]'); ?>"/></td>
<td>
<div class="input-group clockpicker col-sm-12" data-autoclose="true" data-time-format="HH:mm">
<input type="text" name="sampling_clk[]" id="sampling_clk" value="<?php echo set_value('sampling_clk[]'); ?>" required/>
<span class="input-group-addon">
<span class="glyphicon glyphicon-time"></span></span>
</div>
</td>
<td>
<input type="text" name="sampling_analys[]" id="sampling_analys" value="<?php echo set_value('sampling_analys[]'); ?>"/></td>
reference to CI re-populating form: https://www.codeigniter.com/user_guide/libraries/form_validation.html
So, am i doing it wrong? i'm new to CI.