为何用request取不到下拉框选中的值
新手写了一段代码,要用vbscript写一段代码取得下拉框的值,发现用 <%=Request.form( "myyear ")%> 取到的值为空,不能用javascript实现
<table>
<tr>
<td> <p align= "left "> 年份选择框: </p> </td>
<td> <p align= "left ">
<Select name= "myyear " size= "1 " ">
<option value= " "> 不确定 </option>
<%
thisyear=cint(year(date()))
startyear=thisyear-50
for i=startyear to thisyear%>
<option value= " ' <%=i%> ' " <%if i=thisyear-4 Then Response.write "selected "%> > <%=i%> </option>
<%next%>
</Select>
</p> </td>
</tr>
<tr>
<td> <p align= "left "> 选中的值: </p> </td>
<td> <p align= "left ">
<%=Request.form( "myyear ")%>
</p> </td>
<tr>
</table>
------解决方案--------------------LZ啊,你的select列表怎么提交呢???
------解决方案-------------------- <Select name= "myyear " size= "1 " onchnage= "location.href= '?