I have a dropdown field in my form and when I hit submit the form goes through validation and if an error happens, return all the value. This work expect for my dropdown meu
Probably you are not validating the form.
Use this:
$this-> form_validation-> set_rules ('gender', 'Label', 'xss_clean');
To use:
php echo form_dropdown ('gender', $ gender, set_value ('gender'));?>
If not please use the form validation, do as follows:
php echo form_dropdown ('gender', $ gender, $ this-> input-> post ('gender'));?>