rtnMichael
Programmer
hey,
I was wondering if anybody could help me in figuring out how to return an alert if the '@hotmail.com' part of an email isn't there. I have to have the '@hotmail.com' part exactly, not just to see if they have a valid email address. Anybody who does this form will have the same email server, so the '@blah' will be the same.
I'm not sure if I have it right, but I have some code started:
function check_email(spacestring)
ilen = len(spacestring)
i = 1
while i <= ilen
if mid(spacestring,i,13) = "@hotmail.com" then
spacestring = right(spacestring,i-1)
Response.Write(spacesrting)
end if
i = i+1
wend
end function
I'm not sure if it's right, but I would appreciate any little bit of help.
Thanks
M
I was wondering if anybody could help me in figuring out how to return an alert if the '@hotmail.com' part of an email isn't there. I have to have the '@hotmail.com' part exactly, not just to see if they have a valid email address. Anybody who does this form will have the same email server, so the '@blah' will be the same.
I'm not sure if I have it right, but I have some code started:
function check_email(spacestring)
ilen = len(spacestring)
i = 1
while i <= ilen
if mid(spacestring,i,13) = "@hotmail.com" then
spacestring = right(spacestring,i-1)
Response.Write(spacesrting)
end if
i = i+1
wend
end function
I'm not sure if it's right, but I would appreciate any little bit of help.
Thanks
M