标题:求教我的asp程序为什么一直显示出错,请高手帮忙指点指点!!!谢O(∩_∩)O ...
只看楼主
xiaoxian123
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2011-11-17
结帖率:0
已结贴  问题点数:20 回复次数:1 
求教我的asp程序为什么一直显示出错,请高手帮忙指点指点!!!谢O(∩_∩)O谢谢.........
代码如下:

<html>
<head><title>都市玫瑰</title>
<style type="text/css">
<!--
.style1{font-family:"华文行楷";font-size:36px;}
.style2{color:#0000ff}
.style3{color:ff99000}
.style4{color:#ff0000}
.style5{font-size:12px;color:#990000;}
.style6{color:#990000}
-->
</style>
</head>
<body bgcolor="#ffFFCC">
<p align="center">
<span class="style1"><span class="style2">都</span><span class="style3">市</span>
<span class="style4">玫瑰</sapn><span class="style2">聊天</span>
<span class="style3">室</span></span></p>
<p align="center">&nbsp;</p>
<p>
<%
response.buffer=true
on error resume next
if request.servervariables("request_method")="get" then
%>
</p>
<form method="post" action="2-20.asp">
<div align="center"><span class="style5">请输入昵称</span><span class="style6">:</span>
<input type="text" name="name" size="20" value="">
<input name="b1" type="submit" class="style5" styple="font-size:9pt;" value="enter">
</div>
<p>
<input type="hidden" name="log" size="20" value="1"><br></p>
</form>
<%
response.end
else response.clear
dim talk
if request.form("name")<>"" then
session("name")=request.form("name")
end if
%>
</body>
</html>
<head><title>都市玫瑰</title></head>
<body bgcolor="#FFFFFCC">
<form method="post" action="2-20.asp" name="form1">
<p>
<font color="#ff0000"><%=server.htmlencode(session("name"))%></font>说:
<input type="text" name="talk">
<input type="submit" value="提交" name="B1">
<input type="reset" value="取消" name="B2">
</p>
</form>
<a href="2-20.asp">退出聊天室</a><br><br>
<%
if request.form("log")<>1 then
if trim(request.form("talk"))="" then
talk=server.htmlencode(session("name"))
else
talk=server.htmlencode(trim(request.form("talk")))
end if
application.lock
application("show")="
<style type='text/css'>
<!--
.mytd{line-height:10px}
-->
</style>
<table width='85%' border='0' cellpadding='0'>
<tr>
<td class='mytd' width='100%' bgcolor='RGB(10,136,136)'>&nbsp;
</td>
</tr>
<tr>
<td width='100%' bgcolor='#FFccCC'>_
<font color='#0000FF'>来自</font>_
<font color='#99999'>"&request.servervariables("REMOTE_ADDR")&"</font><font color='#0000FF'>
的</font><font color='#666600'>"&server.htmlencode(session("name"))&"</font>_
<font color='#009999'>"&time&"</font><font color='#0000FF'>说:</font></td></tr>_
<tr bgcolor='#CCCCCC'><td width='100%'>_
<font
color='#666666'>"&talk&".</font></td></tr></table><br>"&application("show")
application("show")=""
application.unlock
response.write(application("show"))
end if
end if
%>
</body>
</html>
搜索更多相关主题的帖子: 玫瑰 聊天 华文行楷 asp程序 center 
2011-11-17 20:21
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
得分:20 
on error resume next
这句话临时删除掉看看出什么错误
2011-11-19 15:22



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-355530-1-1.html




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

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