Welcome Guest, Not a member yet? Register   Sign In
How to preselect a year already set in DB?
#3

[eluser]mikelbring[/eluser]
Sorry to double post, I guess you could use the helper if you have the array of years and then the array of the selected years. I just don't really like to use form helpers at all.

Code:
echo form_dropdown('years', array('2008','2009'), array('2009'));


Messages In This Thread
How to preselect a year already set in DB? - by El Forum - 02-16-2010, 02:49 PM
How to preselect a year already set in DB? - by El Forum - 02-16-2010, 03:42 PM
How to preselect a year already set in DB? - by El Forum - 02-16-2010, 03:44 PM
How to preselect a year already set in DB? - by El Forum - 02-16-2010, 04:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB