Ciao in una fase di registrazione controllo che la user o la email non siano già presenti.
---------------------
SQL ="SELECT username,email from utenti where username ='" & username_form & "' OR email ='" & email_form & "'"
if (Not Rs.EOF) then
response.write "email e user presente"
else............
------------------
pero in questo modo l'utente non sa se è la user o l'email presente quindo ho pensato questa cosa sotto ma il problema è che mi da sempre email già in uso ma non è vero
------------------------------
SQL ="SELECT username,email from utenti where username ='" & username_form & "' OR email ='" & email_form & "'"
if (Not Rs.EOF) then
Set Rs = cn.Execute(SQL)

if username =rs("username") then
response.redirect ("user_presente.htm")
end if

if email=rs("email") then
response.redirect ("email_presente.htm")
end if

else...scrive il record ecc ecc