Oh Great Monkish Ones, Whose Wisdom is Likened to That of a Very Wise One,

I'm sure that this has to be one of the most common questions among those new to perl. Perhaps someone could write it up into a step-by-step howto? (I'll do it myself if I figure out how... right now, a google search turned up much info, but nothing exactly like what I needed)

What I'm looking to do seems relatively simple: I want to have a page on the internet with a form. When this form is filled out and the submit button is pressed, the information will be appended to a file on the server. Server is not owned by me, but I have full access to one directory on it.

My questions:

  1. What's the quick-and-dirty way to get this done, with Perl?
  2. What web server must be running? Is this OS-specific? Any quirks?
  3. What security risk does this pose, and how can that be avoided? Assume a win9x or NT system. Or assume a linux system. But please tell me which you mean :-)
  4. What's a good way of organizing the database for both human readability and data munging?
I thank you for sharing your wisdom.

- Anonymous Cowar- er... Monk.


In reply to Web form -- File by Anonymous Monk

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.