[eluser]richzilla[/eluser]
Hi all.
How would i got about repopulating an HTML select with the users input after failed validation. I can do it with normal text fields, just by using
Code:
<?php echo set_value('field'); ?>
however, i cant see anyway to do it with a dropdown.
Im using the CI form_dropdown function and ive got a default option (Please Select...), and a callback to ensure that users select something other than the default. However if a different field on the form fails validation, when the form is repopulated, the dropdown reverts to its default.
Any help would be appreciated.
Thanks