<% On Error Resume Next SQL = "INSERT INTO cart (username, product_id, quantity) VALUES ('" & SqlEsc(Session("username")) & "','" & SqlEsc(Request.Querystring("product_id")) & "', 1)" Conn.Execute(SQL) Call LogIt("add_to_cart.asp", Request.Querystring("product_id"), "", Request.QueryString("goto"), "", "", "", "") If Request.QueryString("goto") = "StoreFront" Then Response.redirect("show_store.asp#" & Server.URLEncode(Request.Querystring("product_id"))) Else Response.redirect("show_product_detail.asp?product_id=" & Server.URLEncode(Request.Querystring("product_id"))) End If %>