%@ LANGUAGE="VBSCRIPT" %>
<% ID = Request.Querystring("ID") %>
<% ACT = Request.Querystring("ACT") %>
<%
if Session("password")=true then
%>
修改
<%
Set ConnGuestBook = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("news.mdb")
ConnGuestBook.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
Set cmdTemp = Server.CreateObject("ADODB.Command")
Set CmdEditInfo = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = "SELECT news.* FROM news WHERE (ID = " & ID & ")"
cmdTemp.CommandType = 1
Set cmdTemp.ActiveConnection = ConnGuestBook
CmdEditInfo.Open cmdTemp, , 0, 1
%>
<% MESSAGE = CmdEditInfo("Body")
MESSAGE = Replace(MESSAGE,"
",chr(13))
message=trim(message)
%>
<%
else
%>
修改

你的行為已經......
請自重,小心觸法
<%
end if
%>