国产探花免费观看_亚洲丰满少妇自慰呻吟_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>


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 资源县| 临汾市| 台安县| 西吉县| 阳新县| 象州县| 高雄县| 宜君县| 名山县| 黎平县| 新邵县| 彰化县| 武冈市| 拉萨市| 航空| 图们市| 湖北省| 浦东新区| 仁怀市| 汶川县| 乐亭县| 乌兰浩特市| 盘山县| 麻阳| 荥阳市| 铜鼓县| 慈溪市| 仁寿县| 石狮市| 岐山县| 班戈县| 察雅县| 荥经县| 辰溪县| 伊通| 武陟县| 巴塘县| 故城县| 梓潼县| 镇江市| 合作市|