PodMaster is right to steer you away from this script, but he doesn't say why. I'll describe several of the warts on that thing.

On its coding standard, this script is very primitive. It uses subroutines as a kind of simple substitution macro, taking no arguments and acting only through global variables. The subroutines occasionally return some useful value, but the caller never makes any use of the retrun values. Error handling is done with exit, which is mighty presumptious of a subroutine. It is uncatchable and prevents any more gracious message to the user.

The ReadParse routine attempts to do what CGI.pm actually does for you automatically. Not taking advantage of that core module is a red flag. As it is, ReadParse does not appear to work. It seems to try to parse both raw posts and query strings in the same way -- and wrong for either.

CheckReferingURL is easily spoofed and some browsers don't accomodate it well. It is well-known that HTTP_REFERER is not useful for security or use restriction.

CheckEmailAddressFormat fails for legal addresses (like dvdj@localhost). This is a notoriously difficult function to implement, and you're usually just as well off without it.

Follow PodMaster's advice and try the nms archive.

P.S. we spell it "Perl" or "perl".

After Compline,
Zaxo


In reply to Re: Setup problem by Zaxo
in thread Setup problem by dvdj

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.