Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Validate form

Status
Not open for further replies.

bench

Technical User
Jan 5, 2001
17
0
0
US
I'm having problem with validating e-mail address and phone number in vbscript. Can you give me examples of how this is done. I know how to check and see if the value entered is numeric or not and also to see if there was a value entered by the user by using the "Len()" method.
 
The best way to validate phone numbers and email addresses using VBScript is to use regular expressions. Check your VBScript documentation on how to use them. You basically create a regular expression to represent a generic email address and phone number and them compare your form contents to them.

Hope this helps a little. Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top