CodeIgniter Forums
Re-populating the form field with the submitted data using form validation with array as the name doesn't work !! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Re-populating the form field with the submitted data using form validation with array as the name doesn't work !! (/showthread.php?tid=27653)



Re-populating the form field with the submitted data using form validation with array as the name doesn't work !! - El Forum - 02-17-2010

[eluser]didit[/eluser]
hi all,
need your help Big Grin

can the form_validation handle the form like this?? and how??

here my form
Code:
<form>
  Employee 1 : <input type="text" name="employee[]" value="<?php set_value('employee[]');?>">
  Employee 2 : <input type="text" name="employee[]" value="<?php set_value('employee[]');?>">
  <input type="submit" name="submit" value="Save">
</form>

many thanks


Re-populating the form field with the submitted data using form validation with array as the name doesn't work !! - El Forum - 02-17-2010

[eluser]kirkaracha[/eluser]
The form validation class is supposed to handle this, but it's buggy. You might be able to work around it.