asp中单选框 复选框 文本框的取值

来源:百度知道 编辑:UC知道 时间:2024/06/24 17:18:24
<form name="me" method="post" action="1.asp">
文本框:<input type="text" name="first" id="the1">

下拉: <select size=1 name="sel" id="the2">
<option value="1">第一</option>
.................
</select>

单选 <input type="radio" name="second" id="the3" value="1">第一
<input type="radio" name="second" id="the3" value="2">第二

如果我要把值传到下一个页面中.下一个页面应该怎么接收参数?
还有就是....这个页面中有几个form

如果我要在这个页面中使用action=XXX

在下个页面中根据action的不同来采取不同的操作,要怎么做?

<%
action =request.QueryString("action")
if action="form1"then
.........
elseif action ="form2" then
..........
end if
%>

<form id="form1" name="form1" method="post" action="?action=form1">
<input type="text" name="textfield" />
<input type="submit" name="Submit" value="提交" />
</form>
<form id="form2" name="form1" method="post" action="?action=form2">
<input type="text" name="textfield" />
<input type="submit" name="Submit" value="提交" />
</form>

first = request.form("first")
sel = request.form("sel")
second = request.form("second")