Becky has asked for the wisdom of the Perl Monks concerning the following question:
If the user selects "gi_number" and "protein_seq", how do I do something with BOTH these values? I can only seem to get access to the last selected value at the moment because all I know how to do is something like<select multiple size="5" name="genbank_info"> <option value="genbank_none" selected>none</option> <option value="gi_number">gi number</option> <option value="protein_seq">protein sequence</option> <option value="dna_seq">DNA sequence</option> <option value="genbank">genbank file</option> <option value="locus_link">locus link</option> </select>
but obviously a string can't equal 2 things at once.if ($FORM{'genbank_info'} eq "gi_number"){ $gi_number = "1234"; }
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: multiple drop-down menus
by mirod (Canon) on Apr 17, 2003 at 10:12 UTC | |
|
Re: multiple drop-down menus
by PodMaster (Abbot) on Apr 17, 2003 at 10:03 UTC |