Try:
If Session("Username") = "pop" Then
Response.Redirect "home.asp?name=" & strUserName
End IF
If Session("Username") <> "pop" Then
rs.addnew
rs.Fields("User") = Session("UserName")
rs.Fields("IP") = Request.ServerVariables("REMOTE_ADDR")
rs.Fields("Date") = strdatetoday
rs.Fields("Browser") = Request.ServerVariables("HTTP_USER_AGENT")
rs.update
rs.requery
set rs = nothing
set conn = nothing
Response.Redirect "home.asp?name=" & strUserName
End If
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
Gale said:
Thomas, I decided that I did not want to check entries for entries. I want to just make it so that
certain usernames are not recorded,especially for administrators since htey logg in a lot,. I tried
to do that with the code below but it doiesn't work. IF the username is "pop" it just quits running
the script entirely and never redirects to the home.asp page. Thanks for your help, Gale