📄 save.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%
title=request("title")
text=request("text")
name=request("name")
if title="" then response.redirect "fb.asp"
if text="" then response.redirect "fb.asp"
if name="" then response.redirect "fb.asp"
kword=split("fuck,ysun,他妈的,我靠,我操,去死,我叼",",")
function keyWord(s)
dim KwCount
KwCount=0
for kwi=0 to ubound(kword)
KwCount = KwCount + instr(s,kword(kwi))
next
keyWord=KwCount
end function
if keyWord(con)>0 then response.redirect "fb.asp"
set myc=Createobject("ADODB.Connection")
myc.ConnectionString="DBQ="& server.mappath("gbook.asp")& ";DRIVER={Microsoft Access Driver (*.mdb)};"
myc.open
set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [gbook] where [num]='" & num & "' order by ID desc"
rs.open rsstr,myc,1,2
dim errr
errr=0
if rs.recordcount>0 then
if rs("text")=text then errr=1
end if
if errr=1 then eer="重复了!<br/>正在返回!<br/>"
if errr<>1 then
rs.addnew
if title<>"" then rs("title")=title
if text<>"" then rs("text")=text
if name<>"" then rs("name")=name
rs.update
end if
myc.close
set myc=nothing
%>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<card title="添加手机" ontimer="index.asp">
<timer value="20"/>
<p>
<%if eer="" then%>
添加成功,<br/>
正在返回!<br/>
<%else%>
<%=eer%>
<%end if%>
----------<br/>
<a href="index.asp">手机大全首页</a><br/>
<a href="/index.asp">社区首页</a><br/>
</p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -