📄 add_avi_save.asp
字号:
<!--#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"))
location= request.form("music")
input_date=cstr(now())
if save = true then
sql = "insert into avionline (title,message,location,input_date,hits,autor,types)"
sql = sql & " values('"&title&"','"&message&"','"&location&"','"&input_date&"','"&hits&"','"&autor&"','1')"
conn.Execute(sql)
CONN.close
set CONN = nothing
response.redirect("avi.asp")
else%>
<script language="vbscript">
msgbox "请检查填写项目是否完整!",vbInformation,"出错提示!"
window.location="vbscript:history.back"
</script>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -