张勍 中投:一个很简章的ASP程序,不知哪里出错了

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 11:35:58
我建了两个网页,内容分别如下:

my1.htm

<HTML>
<HEAD>
<TITLE> Hello</TITLE>

<BODY BGCOLOR="#FFFFFF">
<Form action="my2.asp" method=GET >
<input type="text" name="yourname">
<br>
<input type="submit" value="提交" >
</Form>
</BODY>
</HTML>

my2.asp

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>
hello</title>
</head>

<body>
<%yname=request.querystring(yourname)
request.write"hello,"&yname&"<br>"%>
<a href="my1.htm">

</body>
</html>
运行my1.htm时,当点击提交按钮时出现如下错误:
Request 对象 错误 'ASP 0102 : 80004005'

需要字符串输入

/lesson1/lesson1/eg/eg3/my2.asp,行 11

函数需要字符串输入。

哪位高手能帮我看看哪里出问题了,能让我运行成功,不甚感激!

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>
hello</title>
</head>

<body>
<%yname=request.querystring("yourname")
request.write"hello,"&yname&"<br>"%>
<a href="my1.htm">

</body>
</html>

yname=request.querystring(yourname)
应为:
yname=request("yourname")