asp下拉菜单问题??

来源:百度知道 编辑:UC知道 时间:2024/05/11 21:14:18
我的目的是选中下拉菜单里面的内容,点查看就能转到其指定的页面

主页是index1.asp
代码如下:
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>主页</title>

<%
sql="select * from ad"
rs.open sql,conn,1,3
if request.QueryString("action")="true" then
class1=request.form("class")
if calss1=rs("title") then
mylink=rs("link")
response.Redirect (mylink)
rs.close
response.end
end if
end if

%>

</head>

<body>
<form name="form1" method="post" action="index1.asp" >
<div align="center">
<select name="class" id="class_id">
<%rs.movefirst
while(not r

<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>主页</title>

<%
sql="select * from ad"
rs.open sql,conn,1,3
if request.QueryString("action")="true" then
class1=request.form("class")
if calss1=rs("title") then
mylink=rs("link")
response.Redirect (mylink)
rs.close
response.end
end if
end if

%>

</head>

<body>
<form name="form1" method="post" action="index1.asp" >
<div align="center">
<select name="class" id="class_id">
<%rs.movefirst
while(not rs.eof)
%>
<option value="<%=rs("title")%>"