CodeIgniter Forums
set_value - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: set_value (/showthread.php?tid=68670)



set_value - donpwinston - 08-10-2017

<textarea name="address[]"><?= set_value('address[]') ?></textarea>
<textarea name="address[]"><?= set_value('address[]') ?></textarea>
<textarea name="address[]"><?= set_value('address[]') ?></textarea>

When validation fails for one of the textarea inputs the fields are not being repopulated. (I don't see how this could work anyway)
It works fine when the names are not an array and I use address1, address2, and address3 instead.


RE: set_value - InsiteFX - 08-11-2017

Read this article in these forums:

set_value() in CI3 has issues with input arrays