新微赢技术网

标题: [求助]没有提示错误的错误 [打印本页]

作者: ┈ㄝai〾噯儿    时间: 2010-1-17 05:02
标题: [求助]没有提示错误的错误
<!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=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
Aname=Array("老李","王懂","发叔","龙哥","小陈")
Aage=Array(56,45,51,48,35)
n=ubound(Aname)
response.write "未排序:"
for i=0 to n
response.write Aname(i)&":"&Aage(i)&"&nbsp;&nbsp"
next
response.write "<br>"
for i=0 to n-1
for j=i+1 to n
if Aage(i)<Aage(j)
t=Aage(i)
Aage(i)=Aage(j)
Aage(j)=t
str=Aname(i)
Aname(i)=Aname(j)
Aname(j)=str
end if
next
next
if request("rdscend")="yes" then
for k=n to 0 step -1
response.write "由小到大:"&Aname(k)&":"&Aage(k)&"&nbsp;&nbsp"
next
elseif request("rdscend")="yes" then
for l=0 to n
response.write "由小到大"&Aname(l)&":"&Aage(l)&"&nbsp;&nbsp"
next
end if
%>
<form action="c10_7_2.asp" method="post">
<input type="radio" name="rdscend" value="yes">
<input type="raido" name="rdscend" value="yes">
<% response.write "<br>" %>
<input type="submit" name="确定">
</form>
</body>
</html>
作者: QQ糖    时间: 2010-1-17 05:02
ASP小鸟..望各位同仁指教
作者: 枫之泪-天涯    时间: 2010-1-17 05:02
以下是引用触电在2006-10-19 21:46:28的发言:

<!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=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
Aname=Array("老李","王懂","发叔","龙哥","小陈")
Aage=Array(56,45,51,48,35)
n=ubound(Aname)
response.write "未排序:"
for i=0 to n
response.write Aname(i)&":"&Aage(i)&"&nbsp;&nbsp"
next
response.write "<br>"
for i=0 to n-1
for j=i+1 to n
if Aage(i)<Aage(j)
t=Aage(i)
Aage(i)=Aage(j)
Aage(j)=t
str=Aname(i)
Aname(i)=Aname(j)
Aname(j)=str
end if
next
next
if request("rdscend")="yes" then
for k=n to 0 step -1
response.write "由小到大:"&Aname(k)&":"&Aage(k)&"&nbsp;&nbsp"
next
elseif request("rdscend")="yes" then
for l=0 to n
response.write "由小到大"&Aname(l)&":"&Aage(l)&"&nbsp;&nbsp"
next
end if
%>
<form action="c10_7_2.asp" method="post">
<input type="radio" name="rdscend" value="yes">
<input type="raido" name="rdscend" value="yes">
<% response.write "<br>" %>
<input type="submit" name="确定">
</form>
</body>
</html>

都YES了你还要两个单选按纽做什么?
把一个变成NO啊!~
作者: 冰rose冰    时间: 2010-1-17 05:03
问题解决了..谢拉




欢迎光临 新微赢技术网 (http://bbs.weiying.cn/) Powered by Discuz! X3.2