The first thing I'll do is answer your last (concrete) question: you asked what modules to use. There's a module called (conveniently) CGI, which is just for CGI scripts. Since you seem to be new to CGI, that module may be the way for you to go. (There are other options, of course, but CGI is a popular one.) There are also various books and online tutorials for using it, which is a good reason to consider it. (I don't use it, because I roll my own, but I also read RFC documents; if you're not that kind of geek, you may want to use the module.)

For sending mail, you may want to consider Mail::Mailer or Mail::Send. These are considered better than formmail.pl, partly for reasons of security, and partly for reasons of coding style.

update: added links, and mail-sending info.

$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

In reply to Re: Need some Help with Form by jonadab
in thread Need some Help with Form by Sleepaholic88

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.