CodeIgniter Forums

Full Version: set_value
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
<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.
Read this article in these forums:

set_value() in CI3 has issues with input arrays