in reply to Yet Another Stupid CGI Question
When the user first clicks on the page, it will dump a text box in front of them, saying 'Enter the first few letters.' Based on that, the program will load and weed out all the entries in the 1000+ array that have those first few letters. Then, it returns a page with the text box at the top(so they know what they typed in) and *just* the matching entries.
Based on the distribution of beginning letters, I'd say they'd never get a return page with more than 100 entries on it. (At most, maybe 200.) I realize those are stretching, but I honestly don't think they'd happen often. (If they did during testing, I could build a page-breaker and make it return two pages.)
Now, I realize all this is *way* too much to ask for. I'm not asking for it. All I'd like is a little advice on how to handle turning this data into a web page.
It's going to be:
name=cost=number
And it will come out in a table with a few other things: (chk = checkbox, txt = textfield)
--------------------------------
|chk|name|cost|number|txt|
--------------------------------
Now, as I understand Perl, it doesn't interpolate while or for loops. So if I make the statement
print table(...
...
foreach ... {
...
...
}
...
)
then my code won't work, because the for hasn't been dealt with before the print tries to print.
Am I wrong? Are these things dealt with automagically, and Perl is just all the more amazing? I'm thinking it's not. Does this mean I have to do the table tags by hand?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Yet Another Stupid CGI Question
by davorg (Chancellor) on Oct 19, 2001 at 13:30 UTC | |
Re: Re: Yet Another Stupid CGI Question
by George_Sherston (Vicar) on Oct 19, 2001 at 11:59 UTC | |
Re: Re: Yet Another Stupid CGI Question
by shotgunefx (Parson) on Oct 19, 2001 at 14:21 UTC |