判断页代码
<%
if request.ClientCertificate("adminok") then
request.redirect"login.asp"
end if
%>
<!--#include file="set.asp"-->
<%id=request("id")%>
<%
response.buffer=true
formsize=request.totalbytes
formdata=request.binaryread(formsize)
bncrlf=chrb(13) & chrb(10)
divider=leftb(formdata,clng(instrb(formdata,bncrlf))-1)
datastart=instrb(formdata,bncrlf & bncrlf)+4
dataend=instrb(datastart+1,formdata,divider)-datastart
mydata=midb(formdata,datastart,dataend)
rst.open "select * from color_take where P_link is null",cnn,1,3
rst("p_link").appendchunk mydata
rst.update
rst.close
set rst=nothing
set conngraph=nothing
Response.Write("<script>alert('添加成功!');window.location=('admin_sds.asp')</script>")