本文介绍了地带ASP特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能有人告诉我,如何ASP(经典)剥离特殊字符。我使用的MS Access数据库。我的意思是有没有像stripslashes()函数或和addslashes(任何功能){} PHP。
任何帮助将appriciated
may anyone tell me that how to strip special character in ASP (classic). I'm using MS Access database. I meant is there any function like stripslashes() or addslashes() {PHP}.Any help will be appriciated
推荐答案
在PHP中的函数可以的stripslashes写成
The function StripSlashes in PHP can be written as
function StripSlahes(input)
StripSlashes = replace(input,"\","")
end function
在ASP。和addslashes()稍微复杂一些,需要3个电话来替换
in ASP. AddSlashes() is slightly more complex, you need 3 calls to replace
function AddSlahes(input)
AddSlashes = replace(input,"\","\\")
AddSlashes = replace(AddSlashes,"'","\'")
AddSlashes = replace(AddSlashes,chr(34),"\"+chr(34))
end function
这篇关于地带ASP特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!