ASP form表单验证的问题

来源:百度知道 编辑:UC知道 时间:2024/06/28 21:39:22
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则显示第二通道,类推.
请写出详细的代码.我是新手,谢谢了!

<%@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=&q