så det skall se ut som följer??
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
if Request.Form("chattin") = "Börja chatta" Then
Set chatt = Server.CreateObject( "Adodb.Connection" )
chatt.Provider = "Microsoft.Jet.OLEDB.4.0"
MdbFilePath = Server.MapPath("\4testasp\db\chat.mdb")
chatt.ConnectionString = "Data Source='" & MdbFilePath & "'"
chatt.open
strUser = replace(Request("chattnamn"), "'", "''")
strPasw = replace(Request("txtPassword"), "'", "''")
strSQL = "SELECT * FROM chattare WHERE Chattnamn = '"_
& strUser & "' AND Chattpassw ='" & strPasw & "';"
minCon.Execute strSQL,,128
if not rs.EOF then
strSQL = "UPDATE chattare SET OnLine = 1 WHERE chattnamn ='" & strUser & "';"
minCon.Execute strSQL,,128
strSQL = "INSERT INTO skickade (from, skrivet, tidpkt) VALUES ("_
& "'System', '<i>" & strUser & "</i> Steg in i chatten', '" & Now & "');"
minCon.Execute strSQL,,128
Session("Inloggad") = User("anvID")
rs.Close
minCon.Close
Set rs = Nothing
Set minCon = Nothing
Response.Redirect "chatt.asp"
else
rs.Close
minCon.Close
Set rs = Nothing
Set minCon = Nothing
Response.Redirect("error.html")
end if
end if
%>