good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
dynamic HTML pull downby csuhockey3 (Curate) |
on Nov 04, 2003 at 23:43 UTC ( [id://304578]=perlquestion: print w/replies, xml ) | Need Help?? |
csuhockey3 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I have a very large form that is mailed to several aliases determined by mapping a country name to a region. I have a list of all countries and their respective regions in a text file formatted this way:
So North America has an alias, South America has one and so on. In my CGI, I built a pull down from this list from that file and have a sub that maps to the correct regional email alias. The problem: I need to call the sub that generates the pull down more than once. Here is some sample code to try and reiterate/illustrate what I am trying to accomplish
Any suggestions on how to make this work with out having to write that whole sub over and over again (I need 4 pull downs), so I will end up with something more like this: Thanks All CSUhockey3
Back to
Seekers of Perl Wisdom
|
|