[eluser]zutis[/eluser]
[quote author="beachbum" date="1238637038"]@zutis
Oh, i see what you mean. Yeah, that would probably work. But I just found an easier solution, fortunately.
It's been a long day, or I'd like to think I would have realized this sooner. You just pass the data from the database into the second parameter of the set_value() function, which makes it default to that value unless the user has POSTed the form, in which case it will perform any form validation stuff it needs to on each field and then repopulate the fields with the POSTed data.[/quote]
Thats sort of what I had meant in my first reply to you ....
// Where $item1, $item2 and $item3 is data
from DB
$data['item1'] = $item1;
...
<?php echo set_value('item1', $item1); ?> <<< second parameter here
Anyways ... glad you got it sorted!