Welcome Guest, Not a member yet? Register   Sign In
Problem with form_dropdown fields
#6

[eluser]ccschmitz[/eluser]
It uses the keys from the array you specify so make sure you are using an associate array, otherwise I think it will use numbers by default.

Try this:

Code:
$options = array(
    'January' => 'January',
    'February' => 'February',
    'March' => 'March'
);
echo $form_dropdown('month', $options);


Messages In This Thread
Problem with form_dropdown fields - by El Forum - 12-31-2010, 05:27 AM
Problem with form_dropdown fields - by El Forum - 01-01-2011, 09:49 PM
Problem with form_dropdown fields - by El Forum - 07-07-2011, 09:22 AM
Problem with form_dropdown fields - by El Forum - 07-07-2011, 10:30 AM
Problem with form_dropdown fields - by El Forum - 07-07-2011, 10:32 AM
Problem with form_dropdown fields - by El Forum - 07-07-2011, 01:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB