Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: autoredirect drop down box to perl files

by maverick (Curate)
on Mar 12, 2002 at 07:29 UTC ( #151060=note: print w/replies, xml ) Need Help??


in reply to autoredirect drop down box to perl files

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');"

  • Comment on Re: autoredirect drop down box to perl files

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://151060]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2018-06-23 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (125 votes). Check out past polls.

    Notices?