一个简单聊天试的源代码!(三)

80酷酷网    80kuku.com

  源代码forum.asp



<%
On error resume next
%>
<%
KNAME=SESSION("KNAME")
RESPONSE.WRITE KNAME
If trim(Request.Form("content"))="" then
talk=kname&" 沉默是金。"
Else
talk=trim(Request.Form("content"))
End If
Application.lock
Application("show")="<table border='0' cellpadding='0' cellspacing='0' width='85%' ><tr><td width='100%' bgcolor='#C0C0C0'></td></tr><tr><td width='100%'><font color='#0000FF'> 来自 "&Request.ServerVariables("remote_addr")&" 的 "&Session("KNAME")&time&" 说:</font>"&talk&"</td></tr><tr><td width='100%' bgcolor='#C0C0C0'></td></tr></table>
"&Application("show")
Application.UnLock

Response.Write Application("show")


%>

分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: