国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

網絡尋呼機數據庫版處理發送消息SubmitMessage.asp

2019-11-18 20:25:15
字體:
來源:轉載
供稿:網友
<%
  Word=request("word")
  toname=request("userid")
  name=session("username")
  
  '檢驗輸入的字節是否大于200
    
    if len(trim(word))>200  then
    response.write("你輸入的字節大于200,請<a href=javascript:history.back()>返回</a>")
    response.end
    end if
    
    '不能給自己發信息
    if name=toname then
    response.write("不能給自己發信息,請<a href=Javascript:history.back()>返回</a>")
    response.end
    end if
    
set conn=server.createobject("adodb.connection")
    PRovider = "Provider=Microsoft.Jet.OLEDB.4.0;"
    DBPath = "Data Source=" & Server.MapPath( "webuser.mdb" )

    conn.Open Provider & DBPath
   
    
    
    '檢驗輸入的字節是否和上次一樣
    
    
    sql="select top 1 word,adddate from talks where fromname='"& name & "' and toname='"& toname &"'order by adddate desc"
    set rs=conn.execute(sql)
    
    if not rs.eof then
    
       myword=rs("word")
          
       if word=myword  then
       
          response.write("發送的信息不能和上一次一樣,請<a href=javascript:history.back()>返回</a>")
          rs.close
          set rs=nothing
          response.end
        end if
     end if
    
    set Rs=server.createobject("adodb.recordset")
    sql1="select * from talks"
    rs.open sql1,conn,3,2
    rs.addnew
    rs("fromname")=name
    rs("toname")=toname
    rs("word")=word
    rs.update
    
    

%>
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>保存信息</title>
<script language=javascript>
function close_win(){
window.close();
}
function autoclose(){
window.setTimeout("close_win()",0);}
autoclose();
</script>
</head>

<body>

</body>

</html>


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 饶平县| 赞皇县| 闻喜县| 黔西| 庐江县| 永年县| 曲水县| 门头沟区| 蒙城县| 安庆市| 新龙县| 阿拉善右旗| 蒙自县| 通渭县| 星子县| 建德市| 花莲县| 高尔夫| 缙云县| 宣化县| 云阳县| 肥东县| 浙江省| 江安县| 通江县| 修文县| 红原县| 宜宾市| 定州市| 凤台县| 鹤庆县| 扎囊县| 蒲城县| 大宁县| 白山市| 平乡县| 山阴县| 关岭| 巨鹿县| 同仁县| 沙河市|