
ASP form表单验证的问题
form中有10个type=radio单选按钮name都为b_nameid为id1到id10value为v1到v10如果提交的value为v1,那么就转到log.asp?...
form 中有10个type=radio单选按钮
name都为b_name
id为id1到id10
value为v1到v10
如果提交的value为v1,那么就转到log.asp?v=v1以此类推.
log.asp页面中,接受传来的参数,如果参数是v1则显示您选择的是第一通道,以此类推.
以上功能怎么实现?分不多.谢谢!
reg.asp 页面中有10个type=radio,name都为b_name,value值是V1,V2,V3类推
提交后log.asp中接收判断value的值,如果是V1则显示第一通道,如果是V2则显示第二通道,类推.
请写出详细的代码.我是新手,谢谢了! 展开
name都为b_name
id为id1到id10
value为v1到v10
如果提交的value为v1,那么就转到log.asp?v=v1以此类推.
log.asp页面中,接受传来的参数,如果参数是v1则显示您选择的是第一通道,以此类推.
以上功能怎么实现?分不多.谢谢!
reg.asp 页面中有10个type=radio,name都为b_name,value值是V1,V2,V3类推
提交后log.asp中接收判断value的值,如果是V1则显示第一通道,如果是V2则显示第二通道,类推.
请写出详细的代码.我是新手,谢谢了! 展开
展开全部
dim c,v,i
c = split("一,二,三,四,五,六,七,八,九,十",",")
v = Request.QueryString("v")
i = cInt(Right(v,len(v)-1))
Response.Write "您选择的是第" & c(i) & "通道"
c = split("一,二,三,四,五,六,七,八,九,十",",")
v = Request.QueryString("v")
i = cInt(Right(v,len(v)-1))
Response.Write "您选择的是第" & c(i) & "通道"
已赞过
已踩过<
评论
收起
你对这个回答的评价是?

2022-08-05 广告
苏州蓝晓生物科技有限公司。标准化核心产品:公司拥有完整的琼脂糖介质、葡聚糖介质、聚甲基丙烯酸酯介质生产线,年产分离介质50000L,产品质量稳定并达到国际领先水平。核心优势:公司核心技术人员拥有近二十年不同基质的基球开发和官能化的丰富技术经...
点击进入详情页
本回答由苏州蓝晓生物科技有限公司_提供
展开全部
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<%
a = trim(request("a"))
if a = "b" then
v1 = trim(request("radio"))
response.Write v1
end if
%>
<body>
<form id="form1" name="form1" method="post" action="?a=b">
<label>
<input type="radio" name="radio" id="radio" value="v1" />
</label>
<label>
1
<input type="radio" name="radio" id="radio2" value="v2" />
2
</label>
<label>
<input type="radio" name="radio" id="radio3" value="v3" />
</label>
<label>
3
<input type="radio" name="radio" id="radio4" value="v4" />
</label>
4
<label>
<input type="submit" name="button" id="button" value="提交" />
</label>
</form>
</body>
</html>
这个很简单你看下就知道怎么提交的了
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<%
a = trim(request("a"))
if a = "b" then
v1 = trim(request("radio"))
response.Write v1
end if
%>
<body>
<form id="form1" name="form1" method="post" action="?a=b">
<label>
<input type="radio" name="radio" id="radio" value="v1" />
</label>
<label>
1
<input type="radio" name="radio" id="radio2" value="v2" />
2
</label>
<label>
<input type="radio" name="radio" id="radio3" value="v3" />
</label>
<label>
3
<input type="radio" name="radio" id="radio4" value="v4" />
</label>
4
<label>
<input type="submit" name="button" id="button" value="提交" />
</label>
</form>
</body>
</html>
这个很简单你看下就知道怎么提交的了
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<%
if request.form("b_name")<>"" then
response.redirect("log.asp?v=" & request.form("b_name"))
end if
%>
if request.form("b_name")<>"" then
response.redirect("log.asp?v=" & request.form("b_name"))
end if
%>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询