[eluser]RS71[/eluser]
Hey,
I was using form helpers to build my selects but I think I'm gonna switch typing them out on HTML.
What I had before:
Code:
<?= form_dropdown('sex', $sex_options, set_value('sex', (isset($database['basic_info']->sex)) ? $database['basic_info']->sex : '')); ?>
I'm having some problem understanding how to use database values with set_selects (uh.. its pretty late at night heh)
Could somebody assist me?
Basic, check if there is a validation error value, if not use a database value, if not use default (which in the code I posted above for example is '')
Thanks in advance