set_value not working when using form_input function - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: set_value not working when using form_input function (/showthread.php?tid=48393) |
set_value not working when using form_input function - El Forum - 01-14-2012 [eluser]bhbutter123[/eluser] I have code like this for($i = 1; $i<= 16; $i++){ echo form_input('field'.$i, set_value('field'.$i)); echo br(); } to generate a bunch of fields(no this isn't for a live site) and when it fails(i have field1 as required and leave it blank) then the form doesn't repopulate but when I stick in $_POST['field'.$i] as the value it works after the submit. (beforehand it throws errors of course) Why is set_value not working? set_value not working when using form_input function - El Forum - 08-06-2012 [eluser]mrh[/eluser] Reading set_value() docs... |