Re: Form Information

by Luke Opperman <luko(at)rocketmail.com>

 Date:  Thu, 9 Dec 1999 17:11:02 -0800 (PST)
 To:  "Nicholson,
Dale" <DNicholson(at)APACMail.com>,
"'hwg-theory(at)hwg.org'" <hwg-theory(at)hwg.org>
  todo: View Thread, Original
Dale -

Difficult problem. There is not any solely-HTML solution to
limit what can be entered in a form, except for length. So
you are reduced to checking with either Javascript or
within the CGI. Or both, in case javascript is turned off
or not supported.

Using javascript or perl, just split the date at the /s,
check the last section for length, and if it fails return
an error or use some windowing educated guess thing
(depending on the situation). 

If you want actual code, let me know.

Luke

PS What if they enter DD/MM/YYYY? :)

=====

            ::    Luke Opperman    ::
            :: luko(at)rocketmail.com ::
            :::                   :::
   Use the Source, Luke! Linux 2.2 and beyond.
    Linux Advocate, Web Designer, Questioner.

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

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