Re: multiple fields from SQL query

Dave Howorth <dhoworth-fDajt2Yx3S8pY9vWkoisglpr/1R2p/[email protected]> Thu, 24 May 2012 16:01:59 +0100
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Organization MRC Laboratory for Molecular Biology
Message-ID <[email protected]>
Mark Haney wrote:
> I've got a query in my perl code to pull 2 fields from a database
> (abbreviation, factory_id), one of which is used to populate a
> dropdown box (abbreviation).  However, I will need to pass /both/
> fields to the CGI script that I'm calling from the form that has the
> dropdown box. How do I do that?  Here's what I have so far:

I think what you want to do is print two input elements in your form.
One dropdown box for abbreviation and one for factory_id. The one for
factory_id might well be a text input and might well be hidden. YMMV