date, email and number or character validation

This is a discussion on "date, email and number or character validation" within the Classic ASP section. This forum, and the thread "date, email and number or character validation are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Apr 15th, 2006, 13:03
Junior Member
Join Date: Apr 2006
Location: UK
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
date, email and number or character validation

hi,

i am finding a way to validate date, email, number and character. actually, just simple one such as in a text area, all character typed in must be number or character or at least must contain a letter (such as @ ).

can someone suggest me a way to write please???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Apr 16th, 2006, 16:24
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Re: date, email and number or character validation

Could you be a little more specific as to what you are trying to do here? I did not understand your request.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Apr 16th, 2006, 16:28
Junior Member
Join Date: Apr 2006
Location: UK
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Re: date, email and number or character validation

oh, actually, it's just to check if the user enters the information in the right way or not.

for example, if they enter email address, then it must have @ symbol in the text field, or if they enter a date, it must be in the UK format.

really no idea how to do it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Apr 16th, 2006, 16:33
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,160
Blog Entries: 7
Thanks: 27
Thanked 19 Times in 16 Posts
Re: date, email and number or character validation

The best way to do this would be to employ the use of 'regular expressions' as they can perform simple checking on data, through to very complex checks for things like credit card numbers and social security numbers.

You would need a different regular expression for each check.

Do a search on google for [google]Regular expressions in ASP[/google] and that should steer you toward your next step. Post back with your code if you get stuck once you have coded the reg exp's in.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Apr 17th, 2006, 16:45
Junior Member
Join Date: Apr 2006
Location: UK
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Re: date, email and number or character validation

hi,

thanks alot for the advice, all the RegExp works perfectly for finding any symbol in the username enter.

Last edited by ntgcmlfu; Apr 17th, 2006 at 17:28.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 30th, 2006, 15:32
New Member
Join Date: Jul 2006
Location: Jerusalem
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: date, email and number or character validation

Hi there

If you'd like to perform more advanced email validation, you can validate the domain and email account too.

See this article for details (C#, ASP .NET 2.0):
http://www.webonweboff.com/tips/asp/email.aspx

Hope this helps...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
date, email, number, character, validation

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with email validation dbh_21 Flash & Multimedia Forum 0 Aug 17th, 2007 10:29
PHP bulk email on setn date Voodoochilli PHP Forum 2 Jul 23rd, 2007 16:11
Sending database record ID as a membership number t an email address frinkky PHP Forum 3 Nov 30th, 2006 02:45
Number validation in form field Matc JavaScript Forum 2 May 26th, 2006 15:05
Date Validation señorbadger JavaScript Forum 1 Nov 17th, 2003 19:48


All times are GMT. The time now is 22:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42