ASP下拉框取下来的值如何传递呢?

来源:百度知道 编辑:UC知道 时间:2024/06/03 12:14:30
一个ASP页面中:
先下拉选择 或者 默认选中那个 然后如何把下拉框所选中的数值传到 该页面的

<FORM method=post name=regform action=这里呢

谢谢~啦 知道的帮写个例子 3Q啦 我笨了点
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>

<body>

<p>
<span class="STYLE2">选择服务器:  </span>
<SELECT name=Service size=1 id=Service>
<OPTION value="idreg.asp" selected>广西</OPTION>
<OPTION value="idreg.asp1" selected>上海</OPTION>
</SELECT></p>
<p>
这里显示:刚选择好的value的值</p>

</body>

</html>

比如这个如何修改好呢?下面的还是不太明白 能在这段代码帮改下 我试看吗?谢谢

<select onchange="DoAction(this.value)">
<option>...</option>
</select>
<script type="text/javascript" language="javascript">
function DoAction(Value)
{
document.forms["表格的ID"].action="**.Asp?Action="+Value;
document.forms["表格的ID"].submit();
}
</script>

<%
if request("sel_Val")<>"" then
g_value=request("sel_Val")
end if
%>
<FORM method=post name=regform action="?g_Val=<%=g_value%>">
<select name="sel_Val" onChange="this.form.submit()">
<option>language</option>
<option value="english">english</option>
<option value="chinese">chinexe</option>
<option value="big5">big5</option&g