• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

<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.
Simpler is always better

Read this article in these forums:

set_value() in CI3 has issues with input arrays
What did you Try? What did you Get? What did you Expect?

Joined the CodeIgniter Community in 2009.          ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.