我后台用的是文本框加入的数据库前台直接用asp调的数据库在后台录入了空格和回车换行前台显示不出来
functionencodestrtemp(str)dimiifIsNull(str)thenexitfunctionstr=replace(str,"<","<")st...
function encodestrtemp(str)
dim i
if IsNull(str) then exit function
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,"'","""")
str=replace(str,"</p><p>",vbCrLf&vbCrlf)
str=replace(str,"<br>",vbCrLf)
encodestr=replace(str," "," ")
end function
显示时用的是
ZTbody=encodestrtemp(Request.Form("ZTbody"))
看有没有问题怎么他不显示 不写数据库
给段别的代码也行啊让他前台能显示空格什么的没别的要求 展开
dim i
if IsNull(str) then exit function
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,"'","""")
str=replace(str,"</p><p>",vbCrLf&vbCrlf)
str=replace(str,"<br>",vbCrLf)
encodestr=replace(str," "," ")
end function
显示时用的是
ZTbody=encodestrtemp(Request.Form("ZTbody"))
看有没有问题怎么他不显示 不写数据库
给段别的代码也行啊让他前台能显示空格什么的没别的要求 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询