1.判断是否包含某某字符函数是:Instr()和InstrRev(); 2.具体使用如下: ab="abcdefgHTTP" 你可以用Instr()或者InstrRev()来判断 if Instr(ab, "a")>0 then或 if InstrRev(ab, "a")>0 then 有 else 无
3.具体代码如下: <% dim ly=request("LY") if Instr(ly, "HTTP") >0 then response.write("LY变量是包含了HTTP字符串!即TRUE") else response.write("LY变量中没有包含HTTP字符串!即FALSE") end if %>
4.希望对你有所帮助!本回答被网友采纳
第2个回答 2012-07-26
<% ly = request("LY") if instr(ly,"http") > 0 then ly = "flase" else ly = "true" end if response.write ly