用php做个购物网站:这是啥意思?

来源:百度文库 编辑:神马品牌网 时间:2024/05/01 19:09:31
if instr(classname,"'") or instr(classname,"select") or instr(classname,"in") or instr(classname,"from") or instr(classname,"len") or instr(classname,"where") or instr(classname,"or") or instr(classname,"and") then
Response.Write("<script language=javascript>alert('你想做什么?');window.location.href='check.htm'</script>")
Response.End
end if

判断classname(应为用户输入的一个内容)中是否含有',select,in,from等关键字,若有则警告,说白了,就是判断是否有人造一句select语句骗过程序.是一个加强安全检查的语句.

又是一个asp的低级程序,一看到就烦,为什么那么钟情微软呢?为什么不钟情sun呢?晕。。。