I'm not quite sure what you're asking for...here's two possible takes on it.
1) You want to use a SINGLE perl script 'prog2.pl' and have it receive the current value of the select list.
All you need to do is add a 'action="prog2.pl"' to the FORM tag. And then add a <input type=submit value="go"> tag to the bottom of the form.
2) You want to use a different Perl script for each value in the select list.
This one is a bit trickier. You're going to have to use a bit of javascript to set the 'action' tag in the form accordingly when the selection list changes.
I suspect you mean the former and not the later... :) HTH
/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.