Web Design and Development Forums

Email Address Validation

This is a discussion on "Email Address Validation" within the ASP Forum section. This forum, and the thread "Email Address Validation are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > ASP Forum

Welcome to Webforumz.com.
Register Now Register now!

Closed Thread
 
LinkBack (1) Thread Tools Rate Thread
Old Aug 12th, 2003, 09:56   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Highly Reputable Member
 
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 755
Email Address Validation

Heres a little function you can use to check your users enter valid email addresses:

<font color="blue">Function IsValidEmail(emailaddress)
Dim mc
Set mc = New RegExp
mc.Pattern = "^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"

results = mc.Test(trim(emailaddress))
If results Then
IsValidEmail = True
Else
IsValidEmail = False
End If
End Function</font id="blue">



Cheers
Smokie
__________________
Sam

~~~~~ poast.com ~~~~~
²²d(¬_¬)b²²
Smokie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old Aug 15th, 2003, 23:52   #2 (permalink)
vor
Junior Member
 
Join Date: Aug 2003
Posts: 17
Pretty kewl, but the Pattern seems alittle long.
I have a function like that but its in javascript

Code: Select all
function isEmail(txt){
    var grep = /\S+@\S+\.\S{2,4}/gi //RegEx Pattern
    return (grep.exec(txt))? true:false;
}// end function
I believe \S+@\S+\.\S{2,4} should work in asp.
vor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
email, address, validation

Thread Tools
Rate This Thread
Rate This Thread:

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

LinkBacks (?)
LinkBack to this Thread: http://www.webforumz.com/asp-forum/1407-email-address-validation.htm
Posted By For Type Date
Email address validation - Effective Email Address Validation - The Code Project - ASP.NET This thread Refback Apr 1st, 2007 01:48

Similar Threads
Thread Thread Starter Forum Replies Last Post
Protect your email address Ryan Fait JavaScript Forum 3 Jan 7th, 2007 05:15
originating email address is bad DennisK PHP Forum 2 Nov 27th, 2006 21:44
Registering an email address DennisK HTML Forum 4 Nov 25th, 2006 23:07



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 05:38.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59