标题:[求助]不知道怎么样测试ASP的时候不行
只看楼主
chen_windy
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2007-9-11
 问题点数:0 回复次数:2 
[求助]不知道怎么样测试ASP的时候不行

下面是我写的代码```不知道为什么在本机运行不了

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<form name= "form1" method="post" action="">
<input type="text" name="textfield" />
<label>
<input type="submit"name="submit" value="提交" />
</label>
</form><%
response.Write("你使用的浏览器是:" & request.ServerVariables(("HTTP_USER_AGENT") & "<BR>")
response.Write("你的IP地址是:" & request.ServerVariables("REMOTE_ADDR") & "<br>")
response.Write("你访问的网页是:" & request.ServerVariables("URL") & "<br>")
response.Write("你访问的端口是:" & request.ServerVariables("SERVER_port") & "<br>")
response.Write("你的查询字符串是:" & request.ServerVariables("QUERY_STRING") & "<br>")
Response.Write("传送字节数:"& request.TotalBytes) %>
</body>
</html>

搜索更多相关主题的帖子: ASP 
2007-09-14 18:50
madpbpl
Rank: 4
等 级:贵宾
威 望:11
帖 子:2876
专家分:244
注 册:2007-4-5
得分:0 
response.Write("你的查询字符串是:" & request.ServerVariables("QUERY_STRING") & "<br>"
红色部份之间多了一个空格
form表单 method="get"
2007-09-14 20:41
chen_windy
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2007-9-11
得分:0 

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<form name= "form1" method="get" action="">
<input type="text" name="textfield" />
<label>
<input type="submit"name="submit" value="提交" />
</label>
</form><%
response.Write("你使用的浏览器是:"& request.ServerVariables(("HTTP_USER_AGENT") & "<BR>")
response.Write("你的IP地址是:"& request.ServerVariables("REMOTE_ADDR") & "<br>")
response.Write("你访问的网页是:"& request.ServerVariables("URL") & "<br>")
response.Write("你访问的端口是:"& request.ServerVariables("SERVER_port") & "<br>")
response.Write("你的查询字符串是:"& request.ServerVariables("QUERY_STRING") & "<br>")
Response.Write("传送字节数:"& request.TotalBytes) %>
</body>

还是不行啊```不知道是不是软件问题还是系统问题

2007-09-19 00:15



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




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

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