try
<%@ Language="JavaScript" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head><body>
<p>姓名:<%name1=Request("name").Item != null? Request("name").Item :"";%><%=name1%></p>
<p>性别:<%xingbie=Request("xingbie1").Item != null ? Request("xingbie1").Item.toLowerCase() :"";%>
<%if(xingbie =="true")
Response.Write ("男");
else
Response.Write("女");
%></p><p>省份:<%shengfen1=Request("shengfen").Item != null ? Request("shengfen").Item:"";%><%=shengfen1%></p><p>爱好:<% aihao1_1=Request("aihao1").Item != null? Request("aihao1").Item.toUpperCase():"";
aihao2_2=Request("aihao2").Item != null? Request("aihao2").Item.toUpperCase():"";
if (aihao1_1=="ON")
Response.Write("电脑"); if (aihao2_2=="ON")
Response.Write(" 看书"); if (xingbie=="true" && aihao1_1 != "ON" && aihao2_2 != "ON")
Response.Write ("他没有爱好!");
if (xingbie != "true" && aihao1_1 != "ON" && aihao2_2 !="ON")
Response.Write ("她没有爱好!");
%>
</p>
</body></html>
<%@ Language="JavaScript" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head><body>
<p>姓名:<%name1=Request("name").Item != null? Request("name").Item :"";%><%=name1%></p>
<p>性别:<%xingbie=Request("xingbie1").Item != null ? Request("xingbie1").Item.toLowerCase() :"";%>
<%if(xingbie =="true")
Response.Write ("男");
else
Response.Write("女");
%></p><p>省份:<%shengfen1=Request("shengfen").Item != null ? Request("shengfen").Item:"";%><%=shengfen1%></p><p>爱好:<% aihao1_1=Request("aihao1").Item != null? Request("aihao1").Item.toUpperCase():"";
aihao2_2=Request("aihao2").Item != null? Request("aihao2").Item.toUpperCase():"";
if (aihao1_1=="ON")
Response.Write("电脑"); if (aihao2_2=="ON")
Response.Write(" 看书"); if (xingbie=="true" && aihao1_1 != "ON" && aihao2_2 != "ON")
Response.Write ("他没有爱好!");
if (xingbie != "true" && aihao1_1 != "ON" && aihao2_2 !="ON")
Response.Write ("她没有爱好!");
%>
</p>
</body></html>
解决方案 »
- 正则表达式,高人进。
- 请大家帮忙,产品分类显示的问题!!
- 用Response.Redirect 打开新窗口问题
- html+js 下拉菜单不显示,请教大虾帮忙解决下!
- ie7 的 document.documentElement.offsetWidth
- 如何在一个Function通过函数名称来调用另外一个函数?????
- 求教如何encode和decode中文
- javascript 访问 xml 的问题
- 为何我的winxp装了IIS和FTP都用不了?
- webstorm不规则区域被选中如何解决
- 弹出的窗体怎么更改原窗体的一个值??????????急!!!!!!!!!!
- 在button在onclick事件弹出一个窗口,怎么使这个窗口。。。
1,vbs使用的连接符号是& js是+
2,vbs使用的比较符号是 <> = js是 != ==
3,vbs调用函数一般不用(),而js必须用()把参数括起来
以上是比较容易出错的,还要看他们的基本语法差别