Welcome Guest, Not a member yet? Register   Sign In
form_dropdown and set_select
#4

[eluser]ericrjones1[/eluser]
For the form_dropdown function you don't need to use the set_select function.

For the form_dropdown function use the following code as guidance.

Code:
echo form_dropdown('post_status', $status, set_value('post_status', 'published'), $js);
For this code, $status is an array passed from the controller. The third parameter should be the set_value function. The first parameter in the set_value function will pull the value of the dropdown from $this->input->post('post_status'), and the second is the default value.

For the form_multiselect function use the following code as guidance.

Code:
echo form_multiselect('post_tags[]', $tags, set_value('post_tags[]'), $input);
Same explanation as above, but with form_multiselect.


Messages In This Thread
form_dropdown and set_select - by El Forum - 11-14-2009, 12:35 AM
form_dropdown and set_select - by El Forum - 11-14-2009, 02:54 AM
form_dropdown and set_select - by El Forum - 11-15-2009, 03:58 AM
form_dropdown and set_select - by El Forum - 11-18-2009, 09:31 AM
form_dropdown and set_select - by El Forum - 12-22-2009, 04:25 PM
form_dropdown and set_select - by El Forum - 12-31-2009, 10:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB