然后将输入的内容提交到数据库里面.
再写一个网页将数据库的内容提出.
结果所有的内容在一行里面显示出来了.
所有在输入提交的之前的回车全部无效.
请问,怎么才可以把数据库的内容提出来的同时,也让回车生效.
我用的是ASP+ACCESS
高手请指教一二.
<% Function code_jk(strer) strer=strer if strer="" or isnull(strer) then code_jk="":exit function end if
strer=replace(strer,"<","<") strer=replace(strer,">",">") strer=replace(strer,CHR(32)," ") '空格 strer=replace(strer,CHR(9)," ") 'table strer=replace(strer,CHR(39),"'") '单引号 strer=replace(strer,CHR(34),""") '双引号 dim re Set re=new RegExp re.IgnoreCase =True re.Global=True re.Pattern="(javascript)" strer=re.Replace(strer,"javascript") re.Pattern="(jscript:)" strer=re.Replace(strer,"jscript:") re.Pattern="(js:)" strer=re.Replace(strer,"js:") re.Pattern="(value)" strer=re.Replace(strer,"value") re.Pattern="(about:)" strer=re.Replace(strer,"about:") re.Pattern="(file:)" strer=re.Replace(strer,"file:") re.Pattern="(document.cookie)" strer=re.Replace(strer,"documents.cookie") re.Pattern="(vbscript:)" strer=re.Replace(strer,"vbscript:") re.Pattern="(vbs:)" strer=re.Replace(strer,"vbs:") re.Pattern="(on(mouse|exit|error|click|key))" strer=re.Replace(strer,"on$2") set re=Nothing strer=replace(strer," ","<br>") strer=replace(strer,"[BR]","<br>") strer=replace(strer,vbCrLf,"<br>") code_jk=strer End Function%>