form_dropdown in codeigniter
- by Patrick
I'm getting a strange behaviour from form_dropdown - basically, when I reload the page after validation, the values are screwed up.
this bit generates 3 drop downs with days, months and years:
$days = array(0 => 'Day...');
for ($i = 1; $i <= 31; $i++)
{
$days[] = $i;
}
$months = array(0 =>…