Hi all, New member here & also very new to Perl. I am running a CGI/Perl chat script on my website and have a problem. One of my rules is that all members register a valid email address during the registration process, however some users are able to get around this because there is nothing there to make the field "mandatory", they can simply leave it blank and still get into the chat. This chat comes with it's own registration & login forms that send the data to the CGI part of the chat and I would really like to know how to make at least the email field "required" with an error message if they leave it blank....any ideas? If needed, feel free to examine the chat yourself at www.decenttalk.org, or the script's homepage which is www.ralfchat.com It may take a little time to understand this program as it took me a while....it's a very sophisticated script but has excellent features. Thanks in advance for your time! Allen

In reply to How do I make a form field required for a Perl Chat Script? by SolitudeDude

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.