Hello,
My boss has requested a simple form adjustment to save about 45 seconds of load time. Let me explain. There is a single html page with 2 forms, both created using perl, each of these forms are EXACTLY the same in that they have an option for the number of sites. (there are about 1200 sites). So, the html file is about 200K because it prints all the sites 2 times, he wants it to only print once. The difference btwn the forms, is that one computes the data for today, and the other form has a variable to PAST dates, but not today. So basically, if you want the data for today, you would use the first form, and for past dates, the second form. Basically, what i want to do is have one printout of all the sites, next to it, the date, and next to that, a button. When the button is pushed, it goes to a third script. This script reads the parameters, and if the parameter is "today" then it routes that string into one script, or, if the paramter is any othe rday, it routes it to the other script. Hence, i will only need to print out all the sites once. Is this possible?
Maybe something like
if (date eq "today"){
"execute alt_hist.cgi?allparamshere";
}
else{
"execute hist.cgi?allparamshere";
}
thanks in advance
Dipul
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.