在asp中怎样提取某年某月的天数

来源:百度知道 编辑:UC知道 时间:2024/05/18 10:20:38
从上一部页面中提取参数renyuan="'"&replace(request("renyuan"),",","','")&"'"
nd=request("年度")
yd=request("月度")这里的年度和月度时下拉选择框
现在怎么把选中的年度和月度的天数绑定
谢谢
我的意思是将选中的这个月的天数传递到一个参数,然后将这个参数插入到数据库中,这样数据库中就有了选中的月的天数

要让下拉选择框选择某个选项要将该<option>设置为selected

<%
y=request("y")
response.write(y)
%>
<FORM METHOD=POST ACTION="se.asp">
<select id=sel name=y onchange="submit();"/>
<option value="1" <%If y=1 Then response.write("selected")%>>1</option>
<option value="2" <%If y=2 Then response.write("selected")%>>2</option>
<option value="3" <%If y=3 Then response.write("selected")%>>3</option>
<option value="4" <%If y=4 Then response.write("selected")%>>4</option>
<option value="5" <%If y=5 Then response.write("selected")%>>5</option>
</select>
</FORM>