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.
|
|
|
|
|
![]() |
||
date, email and number or character validation
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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??? |
|
|
|
||||
|
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.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
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. |
|
||||
|
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.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
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. |
|
|||
|
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... |
![]() |
| Tags |
| date, email, number, character, validation |
| Thread Tools | |
|
|
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 |