% xx=request.querystring("mail") If xx="sended" Then msg="Please check your mail account for login details" End If action=request.form("forgt") If(action="submit") Then ename1=LCase(request.form("email")) sql="select * from logindetails where emailid='"&ename1&"' " Set rs=con.Execute(sql) If Not rs.eof Then response.redirect("mail.asp?mailid="&ename1) Else msg="You are a invalid User." End if End if %>