I have a dropdown <select> field which gets its values from the db. I'm currently looking for a way to use set_select() but have been unsuccessful. Here's my existing view:
<select name="userbase">
<?php echo $userbase_list; ?>
</select>
The variable $userbase_list is a string containing all the <option value="">text</option> html to be inserted. Since this <select> is generated from the db, does that mean I can't use the CI set_select() anymore?
set_select()doesn't work if you place a default value inform_dropdown. I don't want to place a default but I need to get to the 4th parameter so I can apply a class or any other HTML attribute. Is there a way to bypass setting the default entirely?