Hello,
I am making a simple login that will loop through an access DB an check to see if the email address(username) is listed and act accordingly.
here is the code I have so far.
it is not looping do you have any suggestions on this?
Thanks
I am making a simple login that will loop through an access DB an check to see if the email address(username) is listed and act accordingly.
here is the code I have so far.
Code:
<%@ language=JScript %>
<!-- #include file="adojavas.inc" -->
<html>
<head>
</head>
<body>
<%
var userEmail = Request.Form("uemail")
var userPass=Request.Form("upass")
var connect = Server.CreateObject("ADODB.Connection");
var record = Server.CreateObject("ADODB.RecordSet");
connect.Open("DSN=hhhba");
record.Open("select * from TestData where EmailAddress ='"+ userEmail+"'", connect, adOpenKeyset, adLockOptimistic);
var testEmail = record("EmailAddress");
if (testEmail == userEmail )
{
Response.Write("Already Used!")
}
else
{
Response.Write("PASS!!")
}
connect.close();
connect = null;
%>
</body></html>
it is not looping do you have any suggestions on this?
Thanks