[eluser]neversummer[/eluser]
I am having a similar problem with set_select. I've read the set_select bit in the user guide about 30 times now, and have searched the forums, but still can't get my dropdown to set the value.
I have a simple html select control:
Code:
<select name="state">
<option value="">Select State...</option>
<option value="AL" <?php echo set_select('state', 'AL'); ?> >Alabama </option>
<option value="AK" <?php echo set_select('state', 'AK'); ?> >Alaska </option>
<option value="AB" <?php echo set_select('state', 'AB'); ?> >Alberta </option>
<option value="AZ" <?php echo set_select('state', 'AZ'); ?> >Arizona </option>
<option value="AR" <?php echo set_select('state', 'AR'); ?> >Arkansas </option>
...
</select>
my controller is pulling the value from the db, and I'm confident that is working b/c I can set the value on a hidden input.
Any suggestions on what I am doing wrong? BTW, I did try moving the value="" after the echo statement and that proved fruitless. I should add that I'm not getting any errors, the page loads and paints fine, it's just that the control is not getting set.
thanks, mike