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

RE: Re: Multiple Scripts?

by ImpalaSS (Monk)
on Nov 14, 2000 at 22:59 UTC ( #41619=note: print w/replies, xml ) Need Help??


in reply to Re: Multiple Scripts?
in thread Multiple Scripts?

Hey guys, I wish i could show you the html, but the nextel servers wont let any ip's except 176.16.*.* in.. so let me try and elaborate.
Well, there are 2 seperate scrips. One computes the data for any given day, EXCEPT today, and the other script computes the data for today only.
The problem is, when the form is printed, the drop down box with the site names, is about 1000 entries long, and that prints 2 times, once for the today script, and the other for the date script.
What i can do, is paste the paramters:
For the Today Script:
http://172.16.4.25/cgi-bin/stats-cgi/today.pl?netid=0002-1&market=PHL

For the Anydate Script:
http://172.16.4.25/cgi-bin/stats-cgi/pickaday.pl?date=14Nov00&netid=0002-1&market=PHL

If i do do the radio button way, can i have it, so when the button is active, the form points to one script, and if it is unchecked, the form points to another?
basically what he wants is the one field, instead of being printed twice, for each script, its printed once, and based on what date is picked, it goes to the correct script?

Thanks In Advance
Dipul

Replies are listed 'Best First'.
RE: RE: Re: Multiple Scripts?
by swiftone (Curate) on Nov 14, 2000 at 23:02 UTC
    If i do do the radio button way, can i have it, so when the button is active, the form points to one script, and if it is unchecked, the form points to another? basically what he wants is the one field, instead of being printed twice, for each script, its printed once, and based on what date is picked, it goes to the correct script?

    Not without Javascript (and don't go there).

    So the solution is to either use what jptxs provided (but make sure you pass along your $ENV{QUERY_STRING} tacked on), or to make your two scripts non-CGI. Make them subroutines or Modules, and require/use them in the one CGI script that gets the form data.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://41619]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2023-03-27 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (65 votes). Check out past polls.

    Notices?