Jun 8, 2002, 10:27 AM
Post #2 of 5
First, you please use [url=http://nms-cgi.sourceforge.net/]nms formmail instead of MSA's formmail. See [url=http://www.scriptarchive.com/nms.html]Matt Wright's note, which states:
Re: [ijsman] this can be done, but how? check drop down menus for input?
[In reply to]
While the free code found at my web site has not evolved much in recent years, the general programming practices and standards of CGI programs have. nms is an attempt by very active programmers in the Perl community to bring the quality of code for these types of programs up to date and eliminate some of the bad programming practices and bugs found in the existing Matt's Script Archive code.
I would highly recommend downloading the nms versions if you wish to learn CGI programming. The code you find at Matt's Script Archive is not representative of how even I would code these days.
To make a field required, simply enter a hidden tag within your form tag, like this:
<input type="hidden" name="required" value="name,comments">
The above example would require that the fields named "name" and "comments" are filled in.
(This post was edited by Jasmine on Jun 8, 2002, 10:28 AM)