Dim email,code
Set Rs = Server.CreateObject("Adodb.RecordSet")
Sql = "Select Top 1 email,code From 51_user where email='"&email&"' and code='"&code&"'"
Set Rs = Conn.Execute(Sql)
If Not Rs.EOF Then
Session("MM_Username")=name
response.redirect(MM_redirectLoginSuccess)
else
response.redirect(MM_redirectLoginFailed)
End If
Rs.Close
Set Rs = Nothing
response.end