Difficult validation ?

Results 1 to 3 of 3

Thread: Difficult validation ?

  1. #1
    Join Date
    Dec 1969

    Default Difficult validation ?

    Hello!<BR><BR>I have a form on page1.asp, which is sent to page2.asp.<BR><BR>Only digits(1234567890) and "," and "." should be allowed(so, like 220 and 220,50 and 220.50 is ok), otherwise a popup gives an error message.<BR><BR>Thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default Difficult ????.......

    ...yeah, and my granny is an olympic triathlete.<BR><BR>all you&#039;re looking for is a valid number, right? I think perhpas the VBScript docs will help you<BR><BR>http://msdn.microsoft.com/scripting/

  3. #3
    Join Date
    Dec 1969

    Default I shouldn't think so

    a regular expression could probably be written for this one. Scripting shouldn&#039;t be needed. Once you have the regular expression (it will involve d and some other stuff) you can keep the expression in an application variable. In this way it will be available to all pages of your website.<BR><BR>http://regxlib.com/<BR><BR>might be a good place to start. 4 Guys has and Excellent tutorial on several aspects of Regular Expressions. <BR><BR><BR>Good Luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts