<% Response.Buffer = True SqlDatabase_Name = "bonry" SqlPass_word = "sa" SqlUser_name = "QQ" SqlLocal_Name = "java" ConnStr = "Provider = Sqloledb; User ID = " & SqlUser_name & "; Password = " & SqlPass_word & "; Initial Catalog = " & SqlDatabase_Name & "; Data Source = " & SqlLocal_Name & ";" On Error Resume Next Set conn = Server.CreateObject("ADODB.Connection") conn.open ConnStr Function SafeRequest(ReqName,ReqType) Dim ReqValue ReqValue=Request(ReqName) If ReqType=1 Then If not isNumeric(ReqValue) Then Response.Write "
提交URL错误,请与管理员联系!
" Response.End() Else ReqValue=Replace(ReqValue,"'","''") End If End If End Function %>