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
| [reply] |
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.
| [reply] |