标题:下拉列表如何传递参数???
只看楼主
jankerli
Rank: 1
来 自:广东
等 级:新手上路
帖 子:48
专家分:5
注 册:2008-4-8
 问题点数:0 回复次数:2 
下拉列表如何传递参数???
程序代码:
<!--#include file="foot.asp"-->
<!--#include file="Top_Kuaijie.asp"-->
<!--#include file="Include/Func_LJ.asp"-->
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www. xmlns="http://www.专业介绍</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">td img {display: block;}body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
</style>
<link href="Css/Kuaijie.css" rel="stylesheet" type="text/css" />
<link href="Css/index.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#ffffff">
<div align="center">
  <table border="0" cellpadding="0" cellspacing="0" width="800">
    <tr>
      <td><img src="IMG/spacer.gif" width="67" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="38" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="62" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="20" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="56" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="74" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="72" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="76" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="73" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="78" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="117" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="67" height="1" border="0" alt="" /></td>
     <td><img src="IMG/spacer.gif" width="1" height="1" border="0" alt="" /></td>
    </tr>
    
  <%Call Top()%>
    <tr>
      <td colspan="4" valign="top">
      <table border="0" cellpadding="0" cellspacing="0" width="186">
  <tr>
   <td><img src="IMG/ImgLJ/spacer.gif" width="49" height="1" border="0" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="137" height="1" border="0" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="1" border="0" alt="" /></td>
  </tr>

  <tr>
   <td colspan="2"><img name="KJ_r1_c1" src="IMG/ImgLJ/KJ_r1_c1.jpg" width="186" height="54" border="0" id="KJ_r1_c1" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="54" border="0" alt="" /></td>
  </tr>
  <%Call Seach()%>
  <tr>
   <td colspan="2"><img name="KJ_r4_c1" src="IMG/ImgLJ/KJ_r4_c1.jpg" width="186" height="45" border="0" id="KJ_r4_c1" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="45" border="0" alt="" /></td>
  </tr>
  <tr>
   <td colspan="2" background="IMG/ImgLJ/KJ_r5_c1.jpg">
   <%Call ArticleLink()%>
   </td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="8" border="0" alt="" /></td>
  </tr>
  
  <tr>
   <td colspan="2"><img name="KJ_r7_c1" src="IMG/ImgLJ/KJ_r7_c1.jpg" width="186" height="45" border="0" id="KJ_r7_c1" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="45" border="0" alt="" /></td>
  </tr>
  <tr>
   <td colspan="2" background="IMG/ImgLJ/KJ_r8_c1.jpg">
   <%Call Article("ZhuanyeShow.asp",65)%>
   </td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="5" border="0" alt="" /></td>
  </tr>
  
  <tr>
   <td colspan="2"><img name="KJ_r10_c1" src="IMG/ImgLJ/KJ_r10_c1.jpg" width="186" height="14" border="0" id="KJ_r10_c1" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="14" border="0" alt="" /></td>
  </tr>
</table>
      </td>
     <td colspan="8" valign="top">
     <table border="0" cellpadding="0" cellspacing="0" width="613">
  <tr>
   <td><img src="IMG/ImgLJ/spacer.gif" width="44" height="1" border="0" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="16" height="1" border="0" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="511" height="1" border="0" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="42" height="1" border="0" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="1" border="0" alt="" /></td>
  </tr>

  <tr>
   <td><img name="Temp_r1_c1" src="IMG/ImgLJ/Temp_r1_c1.jpg" width="44" height="31" border="0" id="Temp_r1_c1" alt="" /></td>
   <td colspan="2" background="IMG/ImgLJ/Temp_r1_c2.jpg">
   <marquee behavior="scroll" direction="left"  onmouseout="start()" onMouseOver="stop()" scrollamount="4"><a href="index.asp">湖南理工学院毕业生就业网</a>&gt;&gt;<a href="Xibu.asp">快捷通道</a>&gt;&gt;<a href="Zhuanye.asp">专业介绍</a></marquee></td>
   <td><img name="Temp_r1_c4" src="IMG/ImgLJ/Temp_r1_c4.jpg" width="42" height="31" border="0" id="Temp_r1_c4" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="31" border="0" alt="" /></td>
  </tr>
  <tr>
   <td colspan="2"><img name="Temp_r2_c1" src="IMG/ImgLJ/Temp_r2_c1.jpg" width="60" height="40" border="0" id="Temp_r2_c1" alt="" /></td>
   <td colspan="2" background="IMG/ImgLJ/Temp_r2_c3.jpg"><%Call KJTD()%></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="40" border="0" alt="" /></td>
  </tr>
  <tr>
   <td colspan="4" background="IMG/ImgLJ/Temp_r3_c1.jpg" align="center">
<div align="right" style="margin-right:15px; margin-top:4px;">   
<form name="xibie">
<select name="Department" id="Department">
        <option value="">请选择系别</option>
          <option value="数学与应用数学系">数学与应用数学系</option>
          <option value="计算机与信息工程系">计算机与信息工程系</option>
          <option value="物理与电子信息系">物理与电子信息系</option>
          <option value="机械与电气工程系">机械与电气工程系</option>
          <option value="化学化工系">化学化工系</option>
          <option value="土木建筑工程系">土木建筑工程系</option>
          <option value="经济与管理系">经济与管理系</option>
          <option value="中国语言文学系">中国语言文学系</option>
          <option value="外国语言文学系">外国语言文学系</option>
          <option value="政治与法学系">政治与法学系</option>
          <option value="新闻传播学系">新闻传播学系</option>
          <option value="旅游系">旅游系</option>
          <option value="音乐系">音乐系</option>
          <option value="体育系">体育系</option>
          <option value="美术系">美术系</option>
                </select>
</form>
</div>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>   <%
set rs=server.CreateObject("adodb.recordset")
    sql="select * from Zhuanye where ID=16"
    rs.open sql,conn,1,1
%>
   <p align="center"><%=rs("title")%></p>
   <hr size="2px" color="#999999" />
   <%=rs("content")%>
   
<%
    rs.close
    set rs=nothing
%> </td>
  </tr>
</table>

   </td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="8" border="0" alt="" /></td>
  </tr>
  
  <tr>
   <td colspan="4"><img name="Temp_r5_c1" src="IMG/ImgLJ/Temp_r5_c1.jpg" width="613" height="16" border="0" id="Temp_r5_c1" alt="" /></td>
   <td><img src="IMG/ImgLJ/spacer.gif" width="1" height="16" border="0" alt="" /></td>
  </tr>
</table>



     </td>
     <td><img src="IMG/spacer.gif" width="1" height="635" border="0" alt="" /></td>
    </tr>
    <%Call Foot()%>
  </table>
</div>
</body>
</html>


请问怎样在这段代码中:<select name="Department" id="Department">
        <option value="">请选择系别</option>
          <option value="数学与应用数学系">数学与应用数学系</option>
          <option value="计算机与信息工程系">计算机与信息工程系</option>
          <option value="物理与电子信息系">物理与电子信息系</option>
          <option value="机械与电气工程系">机械与电气工程系</option>
          <option value="化学化工系">化学化工系</option>
          <option value="土木建筑工程系">土木建筑工程系</option>
          <option value="经济与管理系">经济与管理系</option>
          <option value="中国语言文学系">中国语言文学系</option>
          <option value="外国语言文学系">外国语言文学系</option>
          <option value="政治与法学系">政治与法学系</option>
          <option value="新闻传播学系">新闻传播学系</option>
          <option value="旅游系">旅游系</option>
          <option value="音乐系">音乐系</option>
          <option value="体育系">体育系</option>
          <option value="美术系">美术系</option>
                </select>
添加参数从而把下面的代码接收的内容读出来呢?
<%
set rs=server.CreateObject("adodb.recordset")
    sql="select * from Zhuanye where ID=16"
    rs.open sql,conn,1,1
%>
   <p align="center"><%=rs("title")%></p>
   <hr size="2px" color="#999999" />
   <%=rs("content")%>
   
<%
    rs.close
    set rs=nothing
%>
搜索更多相关主题的帖子: display block body 列表 参数 
2008-08-11 20:18
jankerli
Rank: 1
来 自:广东
等 级:新手上路
帖 子:48
专家分:5
注 册:2008-4-8
得分:0 
我觉得写得有点糊里糊涂的!
  我的意思是想用鼠标选择了下拉列表的某一项之后,就能把相应的内容在本页面读出来!
  不知道大家了解了没?

希望大家能帮帮我!谢谢!

不抛弃,不放弃!
2008-08-11 20:20
hmhz
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:30
帖 子:1890
专家分:503
注 册:2006-12-17
得分:0 
采用框架,或者ajax异步获取数据

[编程论坛] ASP超级群:49158383  敲门暗号:ASP编程
龍艺博客 http://www.
2008-08-12 10:25



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




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

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