Welcome Guest, Not a member yet? Register   Sign In
2 column table to form_dropdown array
#4

[eluser]malzahar[/eluser]
In that case once you create the $names array in the model and pass it to the view you can just load it into the form helper.

Code:
echo form_dropdown('dropdown_name', $names, 'selected_value');


Messages In This Thread
2 column table to form_dropdown array - by El Forum - 09-21-2012, 10:20 AM
2 column table to form_dropdown array - by El Forum - 09-21-2012, 10:30 AM
2 column table to form_dropdown array - by El Forum - 09-21-2012, 10:47 AM
2 column table to form_dropdown array - by El Forum - 09-21-2012, 11:01 AM
2 column table to form_dropdown array - by El Forum - 09-21-2012, 11:06 AM
2 column table to form_dropdown array - by El Forum - 09-21-2012, 11:10 AM
2 column table to form_dropdown array - by El Forum - 09-21-2012, 11:12 AM
2 column table to form_dropdown array - by El Forum - 09-21-2012, 11:33 AM
2 column table to form_dropdown array - by El Forum - 09-21-2012, 12:27 PM
2 column table to form_dropdown array - by El Forum - 09-22-2012, 02:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB