如何跳转呢?
如下:
<form action= " " method= "post " name= "form1 ">
<div class= "middlebottom-right "> <strong> 论坛跳转: </strong>
<select name= "menu1 ">
<%
School_name = "司令部幼儿园 "
set rsMenu = Server.CreateObject( "adodb.recordset ")
sqlMenu = "select subid,bid,suboard from board_view where school_name = ' "&School_name& " ' "
rsMenu.open sqlMenu,conn,1,1
if not rsMenu.eof then
do while not rsMenu.eof
%>
<option value= " <%=rsMenu( "subid ")%> "> <%=rsMenu( "suboard ")%> </option>
<%
rsMenu.movenext
loop
end if
%>
</select>
<input type= "image " src= "../images/list_18.jpg " > --执行图片
</div>
</form>
我想点击 "执行图片 "后,把参数subid,bid传递到本页,应该怎么写呢?谢谢
------解决方案-------------------- <form action= "?a=b " method= "post " name= "form1 ">
</form>
<%
if request( "a ")= "b " then
menu1=Trim(request.from( "menu1 "))
end if
%>
------解决方案--------------------这还不简单,把 <option value= " <%=rsMenu( "subid ")%> "> <%=rsMenu( "suboard ")%> </option> 改改,这只能传subid。改成 <option value= " <%=rsMenu( "subid ")& ", "&rsMenu( "bid ")%> "> <%=rsMenu( "suboard ")%> </option> ,这样就同时间传两个了。
然后,请求时用split以,号取数组,如:arr = split(request.form( 'menu1 '), ", ")
arr(0)就是subid,arr(1)就是bid。
OK!