Re: populating dropdown box from db
Mark Haney <markh-rOuQeLG7NUhWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <[email protected]> |
On 05/09/2012 11:39 AM, Octavian Rasnita wrote: > > > Hi, > > I think you want something like: > > > <p style="text-align: left;"><strong>Select Factory:</strong><br><select > name="factory"> > [% FOREACH some_value IN factory %] > <option value="[% some_value %]">[% some_value %]</option> > [% END %] > </select> > > Octavian > > Yeah, you're right. It didn't register at the time that I would need the [% %] tags for the value substitution. That's probably due to the rookie with TT that I am. That works, thanks a lot. -- Mark Haney Software Developer/Consultant AB Emblem markh-rOuQeLG7NUhWk0Htik3J/[email protected] Linux marius.homelinux 3.3.4-3.fc16.x86_64 GNU/Linux