暑期繽紛巨獻之~------超級+無敵--------XML+javascript+ASP線上簡訊息功能!(6)

來源:互聯網
上載者:User
xml|線上 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+           超級+無敵--------XML+JAVASCRIPT+ASP線上簡訊息功能---介紹
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



---------下面的檔案就是發送新資訊的CREATEINFORMATION.ASP頁,代碼比較長,慢慢看看-----------



<%@EnableSessionState=False%>
<%
Option Explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = 0
'下面使用了一個WRITEXML.ASP檔案,裡面是一個WRITEXML函數.作用是在XML檔案雷根據傳入參數
'產生一行新資料,該檔案將等等列舉.
%>
<!--#include Virtual="/turbo/Inc/WriteXml.asp"-->
<%
Dim Dom
Dim Root
Dim Bool
Dim MyID
Dim MyName
MyID = Request.Cookies("MyID")    
MyName = Request.Cookies("MyName")
Set Dom = Server.CreateObject("Microsoft.XMLDOM")
With Dom
.async = False
.Load Request
If .parseError.errorCode <> 0 Then
Response.Write("<A><B>2</B></A>")
ElseIf Not Isnumeric(MyID) or MyName="" Then
Response.Write("<A><B>2</B></A>")
Else
Set Root = .documentElement
Bool = Check(Root.childNodes.item(0).Text)
If Bool = False Then
Response.Write("<A><B>1</B></A>")
ElseIf WriteXml(Dom, Server.MapPath("Xml/" & Bool & ".xml"), MyID, MyName, Date, replace(replace(replace(now,"-",""),":","")," ",""), Root.childNodes.item(1).Text) Then
Response.Write("<A><B>2</B></A>")
Else
Response.Write("<A><B>3</B></A>")
End If
End If
End With
Set Dom = Nothing



Function Check(Name)
Dim Re
Set Re = Server.CreateObject("ADODB.Recordset")
With Re
.ActiveConnection = Application.Contents("dsn")
.Open "Exec SearchOnline '" & Name & "'",,1,1,adcmdtext
If .EOF And .BOF Then
Check = False
Else
Check = Re(1)
End If
End With
Set Re = Nothing
End Function

%>







-----------------------------------等等是回複資訊的MISSYOU.ASP檔案---------------------------



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.