婚礼的祝福 蒙面歌王:请看看我写的ASP原代码,有没有错误

来源:百度文库 编辑:高校问答 时间:2024/04/29 11:03:04
Dim i
For i=1 To category1_num
If i = ""&category_type1&"" Then
Response.Write "<option value='"&i&"' selected>"&category1_name(i)&"</option>"
Else
Response.Write "<option value='"&i&"'>"&category1_name(i)&"</option>"
End If
Next
­
Dim category_type1, category_type2
category_type1 = Request.Querystring("type1")
category_type2 = Request.Querystring("type2")

Dim i
For i=1 To category1_num
If i = category_type1 Then
Response.Write "<option value='"&i&"' selected>"&category1_name(i)&"</option>"
Else
Response.Write "<option value='"&i&"'>"&category1_name(i)&"</option>"
End If
Next

上面的category1_num, category_type1, category1_name(i) 这些变量我都能在此页接受,可就是在 If 判断语句那里判断不了,i = ""&category_type1&"" 这里分明是两个直一样,可判断结果为不一制,都郁闷死我了.哪为高手帮我解决一下~谢谢

这样看不出错误的