• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.