I have no code (really) written yet I am just trying to understand the process(es) I am about to get involved in.

I want CGI to create a web page on the fly based on the contents of a directory local to the webserver and make buttons that correspond to the files for downloading/viewing. The Web Server is a Domino 5.0.8 server, the OS is NT4 SP5. I currently do this in Notes and it is fairly secure but it is bulky and frankly I'm not so sure I want to make Notes dance anymore (read Lotus Script is no fun and Formula language is making me insane.) So I thought, "Hey the rest of the planet uses this crazy CGI; why not me?"

Here's where my troubles start though -- I don't understand how to tell the CGI.pm how do do things I haven't already told it. Like;

print p ("How many scoops? ", popup_menu ("scoops", [1..5])) ;

I have told (well Randal Schwartz told) scoops that it would contain 1, 2, 3, 4, 5. I need 1..5 to be generated when the user hits the page. I need the script to read the directory at that time. I don't know how to make things happen when requested. I could proabably setup a DB (MySQL?) and have the CGI script read the DB table that contains the contents of the directory but that seems like an extra step or two.

Clearly I am confused. help?
--
lmoran@wtsgSPAM.com
print "\x{263a}"

In reply to Perl...CGI...Things I want to do by ellem

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.