Welcome Guest, Not a member yet? Register   Sign In
form question
#2

[eluser]danmontgomery[/eluser]
Code:
echo form_input('fieldname', set_value('fieldname'));

Will work. I haven't used it with form_dropdown, but something like:

Code:
$values = array(1 => "Value 1", 2 => "Value 2", 3 => "Value 3");
echo form_dropdown('fieldname', $values, set_value('fieldname'));

Should work as well. If you are manually creating the select field you can use set_select() instead.


Messages In This Thread
form question - by El Forum - 01-12-2010, 11:02 AM
form question - by El Forum - 01-12-2010, 11:56 AM
form question - by El Forum - 01-12-2010, 02:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB