CodeIgniter Forums
set_value - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: set_value (/thread-68670.html)



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