ASP下拉框取下来的值如何传递呢?
发布网友
发布时间:2022-04-19 06:51
我来回答
共3个回答
热心网友
时间:2022-04-19 08:20
哎我来帮你做个吧!
代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<%
=request("service")
%>
<body>
<p>
<span class="STYLE2">选择服务器: </span>
<form action="" method="post">
<SELECT name=Service onChange="this.form.submit()">
<OPTION value="idreg.asp">广西</OPTION>
<OPTION value="idreg.asp1">上海</OPTION>
</SELECT>
</form></p>
<p>
这里显示:<%response.Write %></p>
</body>
</html>
参考资料:ASP
热心网友
时间:2022-04-19 09:38
<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>
热心网友
时间:2022-04-19 11:13
<%
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>
</select>
</form>