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
%>

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-03-05
  • 2022-02-25
  • 2021-09-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
相关资源
相似解决方案