简单的asp问题谁来帮我看看代码哪里错了?

来源:百度知道 编辑:UC知道 时间:2024/06/03 21:53:10
我刚买了 本asp方面的书是清华大学出版的 《Asp+SQLServer》上边有个例子是关于redirect的我在第一个文件的选择菜单里选择相应选项后,打开post.asp怎么一点反应也没有呢?源代码如下:
第一个文件 《redirecy.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>asp练习</title>
</head>

<body>
<form name="form1" action="post.asp" method="post">
<select name="wheretogo">
<option selected value="Downlosds

第二个文件《post.asp》
<%
thisurl="http://www.cybertang.com/"
newurl=thisurl
where=request.form("wheretogo")
select case where
case "Download"
newurl=newurl & "Download.asp"
case "Class"
newurl=newurl & "ZXKT.asp"
case "BBS"
newurl=newurl & "bbs/index.asp"
End select
response.write(newurl)
response.redirect(newurl)
%>