Hello! Welcome to the PerlMonks - you've come to the right place.

1. You don't need to include <br> inside <code> tag.
2. Parsing part is so crappy :) But don't worry - I used it too :)

Here is classic hello world script that will become your best friend from now on ...
#!perl use strict; # this is a MUST! use CGI; # so you don't parse it by hand my $query = CGI->new(); # my is because of strict pragma print $query->header(); # so you don't do it by hand print "Hello World!";
When you have something like that (inside $query you have an CGI object) you can easily get any post or get parameter passed to your script easily.
my $form = $query->Vars();
In this case, $form will contain a hashref of form fields. So if you want to say print value of field called "name" :
print $form->{name};
Now let's address your Show_Critical_Error() function :)

Add this to top of your script.
use CGI::Carp qw(fatalsToBrowser); .... .... if($error) { die "Error message"; }
And it will print a relatively nice error message to the browser ;)

I believe this is enough to get you started! There are many more things to learn, but take them one by one ...


Have you tried freelancing? Check out Scriptlance - I work there.

In reply to Re: Perl Security - Prevent SPAM by techcode
in thread Perl Security - Prevent SPAM by jazzwill

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.