Quote from: sirlancelot at Feb 27, 2007, 06:11 AM
I’m still struggling with that one! :-/
It’s a dynamically generated <select> list too...
I’ve got this piece working for an online survey/assessment module, however it’s probably not the cleanest implementation, IMO.
I had to "hack" eForm to allow TPL returns from a snippet, and then I have a "select_menu" class that I created referencing small portions of the ADOdb code base... I create the name/value pairs as an array, and pass to an initArray method of the select_menu class...A few decent paramater options too, such as (size, multiple select (bool), blank first item, attribs, etc)
Using the attributes param, you can easily pass eform psuedo-attribute for validation....