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

#1
<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
Reply

#2
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 )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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