Hi,
I'm working on a page that will check a database for a unique record containing EVERY one of the four elements that were submitted to the page through an HTML form.
If the record is located, the ASP variable "SecurityCheck" should change from 0 to 1.
Here is the page so far. I appreciate any comments on how sound the VB coding is. Second to that, any thoughts on how to finish the SQL query are appreciated also.
Here's the code:
__________________________________________________________
<%@ Language=VBScript %>
<%
dim adoConn
dim rsTest
dim strSQL
dim sProctorID
dim sProctorPW
dim sLMSCourseCode
dim sStudentID
dim sSecurityCheck
sProctorID=Verify.form("ProctorID")'
sProctorPW=Verify.form("ProctorPW")'
sLMSCourseCode=Verfiy.form("LMSCourseCode")
sStudentID=Verfiy.form("StudentID")
sSecurityCheck=0
Set adoConn = Server.CreateObject("ADODB.Connection")
adoConn.Open "DBQ=" & Server.Mappath("ProtcorDB.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};"
strSQL = "select ProctorID, ProctorPW, LMSCourseCode, StudentID From RequestRecords
where ProctorID = "&Verify.Form("ProctorID") AND
where ProctorPW = "&Verify.Form("ProctorPW") AND
where LMSCourseCode = "&Verify.Form("LMSCourseCode") AND
where StudentID = "&Verify.Form("StudentID");
"
Set rsTest = Conn.Execute(strSQL)
Set rsTest = Nothing
adoConn.Close
Set adoConn = Nothing
%>
I'm working on a page that will check a database for a unique record containing EVERY one of the four elements that were submitted to the page through an HTML form.
If the record is located, the ASP variable "SecurityCheck" should change from 0 to 1.
Here is the page so far. I appreciate any comments on how sound the VB coding is. Second to that, any thoughts on how to finish the SQL query are appreciated also.
Here's the code:
__________________________________________________________
<%@ Language=VBScript %>
<%
dim adoConn
dim rsTest
dim strSQL
dim sProctorID
dim sProctorPW
dim sLMSCourseCode
dim sStudentID
dim sSecurityCheck
sProctorID=Verify.form("ProctorID")'
sProctorPW=Verify.form("ProctorPW")'
sLMSCourseCode=Verfiy.form("LMSCourseCode")
sStudentID=Verfiy.form("StudentID")
sSecurityCheck=0
Set adoConn = Server.CreateObject("ADODB.Connection")
adoConn.Open "DBQ=" & Server.Mappath("ProtcorDB.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};"
strSQL = "select ProctorID, ProctorPW, LMSCourseCode, StudentID From RequestRecords
where ProctorID = "&Verify.Form("ProctorID") AND
where ProctorPW = "&Verify.Form("ProctorPW") AND
where LMSCourseCode = "&Verify.Form("LMSCourseCode") AND
where StudentID = "&Verify.Form("StudentID");
"
Set rsTest = Conn.Execute(strSQL)
Set rsTest = Nothing
adoConn.Close
Set adoConn = Nothing
%>