%@ LANGUAGE="VBSCRIPT" %> <% DbPath = SERVER.MapPath("../database/topboy-2002.mdb") Set conn = Server.CreateObject("ADODB.Connection") conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DbPath %> <% result=Instr(1,request.ServerVariables("http_referer"),request.servervariables("http_host"),1) if result = 0 or result = null then response.redirect "manager-login.asp" end if if session("sid") <> "top" then response.redirect "manager-login.asp" end if set rs=server.createobject("adodb.recordset") if request("hf") = "y" then sqltext="insert into topboy_type (mtype) values('"& request("mtype") &"')" conn.execute sqltext response.redirect "manager-news-type.asp" response.end else %>