Welcome Guest, Not a member yet? Register   Sign In
Form Helper - Select Lists/Menu's
#2

[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.

Code:
form_dropdown($name, options(), selections(), $extras);

Example:

Code:
form_dropdown('shirts', array('small' => 'Small Shirt', 'medium' => 'Medium Shirt'), '', 'size=5');


Messages In This Thread
Form Helper - Select Lists/Menu's - by El Forum - 07-02-2007, 05:16 AM
Form Helper - Select Lists/Menu's - by El Forum - 10-09-2012, 08:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB