sqlfilter.asp
上传用户:maming258
上传日期:2022-01-28
资源大小:283k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <%
  2. Function SafeRequest(ParaName,ParaType)
  3.        '--- 传入参数 ---
  4.        'ParaName:参数名称-字符型
  5.        'ParaType:参数类型-数字型(1表示以上参数是数字,0表示以上参数为字符)
  6.        Dim ParaValue
  7.        ParaValue=Trim(Request(ParaName))
  8.    If ParaValue<>"" Then 
  9. If ParaType=1 then
  10. If not isNumeric(ParaValue) then
  11.                      Response.write "参数" & ParaName & "必须为数字型!"
  12.                      Response.End
  13. End if
  14.  Else
  15.               ParaValue=replace(ParaValue,"'","''")
  16. End if
  17. End If
  18.        SafeRequest=ParaValue
  19. End function
  20. %>