梦幻西游剧情任务选择:asp高手看我的代码错在哪里?

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/30 22:15:22
<body>
<%
if sex="男" then
if age<8 then
response.Write("小弟弟")
else
if age>=8 and age<=15 then
response.Write("小男孩")
else
if age>=16 and age<=24 then
response.Write("小伙子")
else
if age>=25 and age<=45 then
response.Write("青年男子")
else
if age>=46 and age<=55 then
response.Write("中年男子")
else
if age>=56 and age<=80 then
response.Write("老爷爷")
else
if age>81 then
response.Write("老寿星")
end if
end if
end if
end if
end if
end if
else
if age<8 then
response.Write("小妹妹")
else
if age>=8 and age<=15 then
response.Write("小女孩")
else
if age>=16 and age<=24 then
response.Write("小姑娘")
else
if age>=25 and age<=45 then
response.Write("青年女子")
else
if age>=46 and age<=55 then
response.Write("中年女子")
else
if age>=56 and age<=80 then
response.Write("奶奶")
else
if age>81 then
response.Write("老奶奶")
end if
end if
end if
end if
end if
end if
end if
%>
<form name="form1" method="post" action="">
<p>请输入性别:男
<input type="radio" name="sex" value="男">

<input type="radio" name="sex" value="女">
</p>
<p>请输入年龄:
<input name=age type="text" id=age>
</p>
<p>
<input type="submit" name="Submit" value="提交">
</p>
</form>
</body>
能在dw中试验成功再回答更好!