10-09-2012, 08:37 AM
[eluser]MasterHernan[/eluser]
I know this is an old post but since Google has this thread in the top results when searching for a way to do a select list with form helper. I figured it would help if I post a different solution using form_dropdown().
To get a list, add the size attributes in the extra parameters of the function.
Example:
I know this is an old post but since Google has this thread in the top results when searching for a way to do a select list with form helper. I figured it would help if I post a different solution using form_dropdown().
To get a list, add the size attributes in the extra parameters of the function.
Code:
form_dropdown($name, options(), selections(), $extras);
Example:
Code:
form_dropdown('shirts', array('small' => 'Small Shirt', 'medium' => 'Medium Shirt'), '', 'size=5');