On Fri, Aug 22, 2003 at 06:04:11PM -0700, Gisle Aas wrote:
> Mark Stosberg <[EMAIL PROTECTED]> writes:
>
> > I'm having trouble with a particular task with SELECT lists that seems
> > like it should be straight forward. I'm looking for suggestions and
> > sample code to solve this.
> >
> > Here's what I want to do:
> >
> > Given the name of the selection list, I want to randomly select one of
> > the items in the selection list, and return the value that was selected.
> >
> > It sounds easy, but HTML::Form seems to be centered around the "OPTION"
> > tag, rather than the "SELECT" tag,
>
> Why do you have to care? The input-type name does not need to be
> exposed at all to do what you describe here. I just had to go with
> one name to make it into a "input-like" object and I went with OPTION.
> Perhaps I should just make SELECT and alias for the same thing.
Gisle,
Thanks for the response. Your example does just what I want, using the
syntax that I would expect to work. I'm not sure what I was trying
before with find_input() and possible_values() that resulted in an
error.
Mark
--
http://mark.stosberg.com/