Re: Required field

by Martin Kunz <stray(at)stray.ch>

 Date:  Wed, 18 Feb 1998 19:06:17 +0100
 To:  hwg-theory(at)mail.hwg.org
 In-Reply-To: 
  todo: View Thread, Original
Hiya Gary

There's no such thing as a general "required" tag in forms. Two
possibilities spring to mind: Use a javascript snippet that checks for the
required fields to be filled in before calling the cgi, or, as I often do,
have the CGI script recognize required fields somehow. My own mailer script
does this with every field whose name starts with a # sign, i.e.
name="#Phone Number" -> those fields will produce an error message if not
filled in, and for your convencience the # is stripped in the mailed
message.

You can find an example of the script at http://plug.net/crypt ...

Cheers
Stray

HWG hwg-theory mailing list archives, maintained by Webmasters @ IWA