Welcome Guest, Not a member yet? Register   Sign In
Repopulating HTML select after failed form validation
#5

[eluser]frist44[/eluser]
I have a helper function that I don't have access to right now, but it takes a default value like the above. You could just send it to the post value as selected.

echo form_dropdown('fieldname', array( 1 => 'Value 1', 2 => 'Value 2'), $this->input->post('fieldname'));


Messages In This Thread
Repopulating HTML select after failed form validation - by El Forum - 01-12-2010, 07:04 AM
Repopulating HTML select after failed form validation - by El Forum - 01-12-2010, 07:18 AM
Repopulating HTML select after failed form validation - by El Forum - 01-12-2010, 08:35 AM
Repopulating HTML select after failed form validation - by El Forum - 01-12-2010, 12:01 PM
Repopulating HTML select after failed form validation - by El Forum - 01-12-2010, 08:12 PM
Repopulating HTML select after failed form validation - by El Forum - 01-20-2010, 12:32 PM
Repopulating HTML select after failed form validation - by El Forum - 01-20-2010, 04:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB