asp 聊天室 进来帮帮我~!

来源:百度知道 编辑:UC知道 时间:2024/06/06 12:22:44
为什么我做的聊天室,发送 聊天内容 时,总是把"聊天文字"和"发送聊天文字的页面"一起发送到"显示内容的页面"中去?
message.asp (发送聊天文字的页面代码)
<HTML>
<HEAD>
<Title>Message.asp</Title>
<base target="list">
</HEAD>
<BODY bgcolor="#669999">
<%
if session("username")="" then
Response.Redirect"login.asp"
else
words=trim(request("Words"))

if words<>"" then
Application.Lock
application("show")=session("username") & ":" & words &"<br>" &application("show")
Application.UnLock
end if
end if
%>
<form method="post" action="message.asp">
<center>
<%=Session("username")%>
:<INPUT NAME="Words" type=&q

聊天文字"和"发送聊天文字的页面"一起发送到"显示内容的页面"中去?
我不知道什么意思
不过我看过了 运行正常 分两个页面 一个是输入聊天内容页面 一个是聊天内容显示页面 不错。!

用ajax解决这个问题比较好。

改成这样就好用了
message.asp (发送聊天文字的页面代码)
<HTML>
<HEAD>
<Title>Message.asp</Title>
<base target="list">
</HEAD>
<BODY bgcolor="#669999">
<%
Session("UserName")="极限风暴"
if session("username")="" then
Response.Redirect"login.asp"
else
words=trim(request("Words"))

if words<>"" then
Application.Lock
application("show")=session("username") & ":" & words &"<br>" &application("show")
Application.UnLock
end if
end if
%>
<iframe src="List.asp" width="90%" height="300" frameborder="0&quo