Re: Setting Requirements on Forms

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kevin Spencer (kevin_at_takempis.com)
Date: 02/13/04


Date: Fri, 13 Feb 2004 11:27:45 -0500

FrontPage uses client-side JavaScript for form validation. The downside to
this is that a few people out there have JavaScript turned off in their
browsers. This prevents any validation from being run. However, it shouldn't
present a problem. After all, just having 16 digits doesn't make for a valid
CC number. It has to be verified by a CC Transaction Service to ensure this.
You need to use better validation for CC numbers. On the other hand, if this
is not an automatic transaction, again, it's not a problem. If you're
shipping some product, I'm sure you're checking the CC numbers when you put
in the orders, right? And I'm assuming that just because a CC number has 16
digits that you're not assuming it's valid, and shipping your product before
you verify the card number.

One additional note: I sure hope you're using SSL (Secure Sockets Layer) on
the form page that collects this CC information! Otherwise, you're
broadcasting all these people's CC information to the world.

-- 
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Lisa" <anonymous@discussions.microsoft.com> wrote in message
news:f5d901c3f249$648b6fe0$a301280a@phx.gbl...
> Hi,
> I have created a form that collects credit card
> information, and in the fields collecting the credit card
> digits, I have set requirements so that the information
> is entered correctly (i.e., min. and max. of 4 digits per
> field).  For some reason, there are still some entries
> coming through on the form with missing digits.  The data
> is being collected in a MS Access database.  Any ideas
> how this could be happening?  I have looked at the code,
> and the requirements are in the scripting.  And when I
> have tested it on my computer, it works fine.
> Thanks in advance for your help,
> Lisa


Relevant Pages

  • Re: Looking for a certain regexp
    ... PG> context of credit card number validation. ... Regular expressions (especially Perl regular ... digits with appropriate modifications (add the digits of 2 digit ...
    (comp.lang.perl.misc)
  • Re: COBOL (Fujitsu v3) Data validation.
    ... my main problem is still validating that the user enters 12 digits only. ... >> I am writing a Credit Card program. ... > Let's leave validation of the input for a moment and go for your specific ... Here's a basic programming rule: ...
    (comp.lang.cobol)
  • Re: Regex help
    ... All indications from your regex show validation ... preceding digits. ... beginning of string assertion ^ is useless when used ... input requirements closer if I was given this assignment. ...
    (comp.lang.perl.misc)
  • Re: Reset Serial Number
    ... Yes I attempted to tell you exactly that in my last response. ... "Felix Wang" wrote in message ... > digits together and divides the sum by 7.If the remainder is 0, validation ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Regex help
    ... The regex you use is interresting. ... All indications from your regex show validation ... preceding digits. ... beginning of string assertion ^ is useless when used ...
    (comp.lang.perl.misc)