在asp中实现保值处理
<select name="date">
<option value="未选择1" selected="selected">未选择1</option>
<option value="未选择2">未选择2</option>
</select>
<input type ="text" name="select"/>
<input type="submit" name="Submit" onclick="javascript:location.href='show2.asp?vote_kind=2&select='+document.all.select.value+'&date='+document.all.date.value+''" value="查询" />
<%
response.write("<input type ='text' name='hid_select' value = '"+request("select")+"'/>")
response.write("<input type ='text' name='hid_date' value = '"+request("date")+"'/>")
%>
<script language="javascript">
function TT()
{
for(i=0;i<document.all.date.length;i++)
{
if(document.all.date.options[i].value == document.all.hid_date.value)
{
document.all.date.options[i].selected=true;
}
}
document.all.select.value = document.all.hid_select.value;
}
TT()
</script>