add_zqhd_save.asp

来自「心里在线咨询系统 怎么还有字数限制」· ASP 代码 · 共 46 行

ASP
46
字号
<!--#include file="../config/conn.asp" -->
<%save = true
function zweistellig(wert)
if len(wert)<2 then wert = "0" & wert
zweistellig = wert
end function
function check1(wert)
	if len(wert)<1 then save = false
	wert = replace(wert,"'", "`")
	wert = replace(wert,chr(34), "``")
	check1 = wert
end function
function check2(wert)
	if len(wert)<1 then wert = " "
	wert = replace(wert,"'", "`")
	wert = replace(wert,chr(34), "``")
	check2 = wert
end function
autor = check1(request.form("autor"))
title = check1(request.form("title"))
message = check1(request.form("message"))
if killword<>"" then 
arrayx=Split(killword,",")
for i=0 to ubound(arrayx)
title =replace(title ,arrayx(i),"***")
message=replace(message,arrayx(i),"***")
next
end if

templet= check2(request.form("templet"))
location= request.form("music")
if location="" then response.redirect("../bbs/add_zqhd.asp")
input_date=cstr(now())
if save = true then
	sql = "insert into interaction (title,message,templet,location,input_date,hits,autor)"
	sql = sql & " values('"&title&"','"&message&"','"&templet&"','"&location&"','"&input_date&"','"&hits&"','"&autor&"')" 
	conn.Execute(sql)
	CONN.close
	set CONN = nothing
	response.redirect("../easytime/zqhd.asp")
else%>
<script language="vbscript">
		msgbox "请检查填写项目是否完整!",vbInformation,"出错提示!"
		window.location="vbscript:history.back"
</script>
<%end if%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?