isthisthingon
IS-IT--Management
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
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