📄 ljlsave.asp
字号:
<!--#include file="config/config.asp"-->
<%username=session("hxf_u_nickname")
if username="" then Response.Redirect "error.asp?id=440"
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
connstr=Application("hg_connstr")
conn.open connstr
info=request("message")
jieshou=request("jieshouzhe")
n=Year(date())
y=Month(date())
r=Day(date())
s=Hour(time())
f=Minute(time())
m=Second(time())
if len(y)=1 then y="0" & y
if len(r)=1 then r="0" & r
if len(s)=1 then s="0" & s
if len(f)=1 then f="0" & f
if len(m)=1 then m="0" & m
sj=n & "-" & y & "-" & r
if len(info)>50 then%>
<script language=vbscript>
MsgBox "短信内容最多为50字!"
location.href = "show.asp"
'window.close()
</script>
<%'检验数据合法性
else
set tablelist=conn.execute("select * from 短信 where del=true")
if not(tablelist.eof and tablelist.bof) then
id1=tablelist("id")
conn.execute"update 短信 set send='" &username&"',jieshou='"&jieshou&"',info='"&info&"',sj='"&sj&"',dufou=false,del=false where id="&id1
else
'写入记录
conn.execute("insert into 短信(send,jieshou,info,sj) values('" &username &"','" &jieshou &"','" &info &"','" &sj &"')")
end if
'rs.close
conn.close
set conn=nothing
end if
%>
<script language=vbscript>
MsgBox "信息发送成功!"
'location.href = "card.asp"
window.close()
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -