新加坡高鸿集团官网:我后台用的是文本框加入的数据库前台直接用asp调的数据库在后台录入了空格和回车换行前台显示不出来

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/19 02:46:10
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"))
看有没有问题怎么他不显示 不写数据库

给段别的代码也行啊让他前台能显示空格什么的没别的要求

你写的这个过滤函数.

encodestr=replace(str," ", )
显示空格应该把" "转为& n b s p吧.

还有,不写数据库的原因是不是你使用了access的数据库..
然后NTFS格式的硬盘没分配everyone的权限给它