请教:单选按钮问题!
<input name="rdo" type="radio" checked="checked" value="层次"/>层次 <input name="rdo" type="radio" value="专业号" />专业号
<input name="rdo" type="radio" value="档案号" />档案号
<%
set rsCondition = Server.CreateObject("ADODB.RecordSet")
dim strCondition
strCondition="select stu.stu_level,fdz.fdzname,st.studykind,sub.subject,stu.entranceway,stu.studentname,stu.cardid,stu.archieveid,stu.signstate"
strCondition=strCondition+" from stusignsys as stu,fdzlist as fdz,studykindlist as st,subjectsys as sub where 1=1"
if stu_level<>"" then '如果入学年级不为空
strCondition=strCondition+" and stu.stu_level='" & stu_level & "'" '根据入学年级查询
end if
if request.form("rdo")="专业号" then
strCondition=strCondition+" order by sub.subject" '如果选择专业号,就按专业号排序
else if request.form("rdo")="档案号" then
strCondition=strCondition+" order by stu.archieveid" '如果选择档案号,就按档案号排序
else
strCondition=strCondition+" order by st.studykind" '否则按层次排序
end if
end if
rsCondition.Open strCondition,conn,1,1
%>
以上是部分代码,目的就是为了实现选择哪个单选按钮就按哪个排序。。。