<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
strUser = replace(Request("chattNamn"), "'", "''")
strPasw1 = replace(Request("chattPassword1"), "'", "''")
strPasw2 = replace(Request("chattPassword2"), "'", "''")
if strUser <> "" then
Set minCon = Server.CreateObject( "Adodb.Connection" )
minCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/db/guests.mdb")
strSQL = "SELECT * FROM chattUser WHERE chattNamn = '" & strUser & "';"
Set rs = minCon.Execute(strSQL)
if (rs.EOF) and (strUser <> "System") then
strSQL = "INSERT INTO chattUser (chattNamn, chattPassword) VALUES ('"_
& strUser & "', '" & strPasw1 & "');"
Session("Inloggad") = rs("chattID")
rs.Close
minCon.Close
Set rs = Nothing
Set minCon = Nothing
Response.Redirect "chatten.asp"
end if
end if
%>
När jag kör sidan i IIS får jag nedanstående felutskrift
Technical Information (for support personnel)
Error Type:
ADODB.Field (0x80020009)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/registrera.asp, line 19
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Page:
POST 80 bytes to /registrera.asp
POST Data:
chattNamn=peter&chattPassword1=1234&chattPassword2=1234&btnSignup=Registrera+dig