| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 411 人关注过本帖
标题:请教各位一个问题
只看楼主 加入收藏
wxdwxd
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2006-3-18
收藏
 问题点数:0 回复次数:0 
请教各位一个问题

<%@Language=VBScript%>
<%
Response.Buffer=true
On error resume next
If Request.ServerVariables("Request_Method")="GET" then
%>
<form method="POST" action="chat.asp"><p>
<input type="text" name="nick" size="20" value="nick" style="background-color: rgb

(192,192,192)"><br>
<input type="submit" value=" 进入聊天室 " name="B1" style="color: rgb(255,255,0); font-size:

9pt; background-color: rgb(0,128,128)">
<p><input type="hidden" name="log" size="20" value="1"><br></p>
</form>
Response.End
Else
Response.clear
dimtalk
If Request.Form("nick")<>"" then Session("nick")=Request.Form("nick")
EndIf
%>
<form method="POST" action="chat.asp" name=form1><p><%=Session("nick")%>说话:<input

type="text" name="talk" size="50"><br>
<input type="submit" value=" 提交 " name="B1">
<input type="reset" value=" 取消 " name="B2"></p>
</form>
<A HREF="/asptest/shusheng/chat.asp">离开 </a><br><br>
<%
If Request.Form("log")<>1 then
If trim(Request.Form("talk"))="" then talk=Session("nick")&"沉默是金。"
Else
talk=trim(Request.Form("talk"))
End If
Application.lock
Application("show")="<tableborder='0' cellpadding='0' cellspacing='0' width='85%'>
<tr><tdwidth='100%' bgcolor='#C0C0C0'></td></tr>
<tr><tdwidth='100%'>
<fontcolor='#0000FF'>来自"&Request.ServerVariables("remote_addr")&"的"&Session("nick")

&time&" 说:</font>"&talk&"</td></tr>
<tr><td width='100%' bgcolor='#C0C0C0'></td></tr>
</table><br>"&Application("show")
Application.UnLock
Response.WriteApplication("show")
EndIf
EndIf
%>

搜索更多相关主题的帖子: 进入聊天室 blank action method target 
2006-05-19 11:14
快速回复:请教各位一个问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.019651 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved