各位师兄,我按照你们说的那种方法把文本框的值都传过来了
但是下拉选择框的值无法传递呢...........麻烦........
a.asp
<FORM METHOD=POST ACTION="b.asp">
<select name="ay"><option value="">
<%
Dim ay
For ay=1970 To Year(now)
response.write "<option values="&ay&">"&ay
Next
%></select>年<select name="am"><option value="">
<%
Dim am
For am=1 To 12
response.write "<option values="&am&">"&am
Next
%></select>月
<INPUT TYPE="submit" value="button1">
</FORM>
b.asp
<FORM METHOD=post ACTION="cun.asp">
<INPUT TYPE="hidden" name="aaa" value="<%=request.Form("ay"&"-"&"am")%>" >
<INPUT TYPE="text" NAME="b"><INPUT TYPE="submit" value="button2">
</FORM>
cun.asp
<!--#include file="../conn.asp"-->
<%
a=Trim(request.form("aaa"))
b=Trim(request.Form("b"))
sql="exec b '"&a&"','"&b&"'"
res.open sql,conn,1,3
%>