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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

emaill address validation in asp form

Status
Not open for further replies.

isthisthingon

IS-IT--Management
May 17, 2005
65
US
I am capturing an email address on an asp form to register new users. I want to limit new users to users who have an email address in a particular domain. here's what I have to limit blank addresses, but how do I make sure the entered addresses are in a particular domain? All help is appreciated.

if strEmail = "" then
blnValid = False
strValid = strValid & "<table border=""0"" width=""302"" cellspacing=""0"" cellpadding=""0"" height=""22"">" & vbCrLf &_
"<tr>" & vbCrLf &_
"<td width=""300"" height=""22""><p align=""left""><font face=""Verdana"" size=""2"" color=""#000080""># Please Enter Your E-Mail ID.</p></td>" & vbCrLf &_
"</tr>" & vbCrLf &_
"</table>"
end if
 
Use the IndexOf function to check the domain exists in the string.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top