record exist or not
Hi,
I have a form with an email field.
The user input his emails with comma separated like this a@a.com,b@b.com
in the second page I split the string and now I want to check each email address in the db.if exist send err message if not go on.
the code below does not work.what should I do?
strTo=request.form("to")
strEmails=split(strTo,",")
For each strTo in strEmails
do while not rsExist.eof
if (strComp(RsExist("Email"),strTo, vbTextCompare)=0) then
response.write "email exist"
rsExist.movenext
loop
response.end
end if
next
|