Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Yet Another Stupid CGI Questionby chaoticset (Chaplain) |
on Oct 19, 2001 at 09:19 UTC ( [id://119884]=note: print w/replies, xml ) | Need Help?? |
Sorry - I should have been more specific about what I'm doing. This should address the questions.
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)
-------------------------------- Now, as I understand Perl, it doesn't interpolate while or for loops. So if I make the statement
print table(... 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?
In Section
Seekers of Perl Wisdom
|
|