双引号!!
数据库中数据带有 " "如何传到页面中?
------解决方案-------------------- <script language= "vbscript ">
str = "sdfdsfdsafdsa " " " "dsafdsfdsfds " "asdfds "
document.write replace(str, chr(34), "" ")
</script>
上面是页面脚本写法. 自己改成后后源码.
------解决方案--------------------在写进数据库的时候先替换一下.
replace(str, " " ", "|@| ")
等要用时再改回来就可以了嘛
replace(str, "|@| ", " " ")
------解决方案-------------------- <%
a1 = "我是 " "一个 " "小小鸟 "
%>
<FORM METHOD=POST ACTION= " ">
<INPUT TYPE= "text " NAME= "a1 " value= ' <%=a1%> '> <INPUT TYPE= "submit ">
</FORM>
<%
response.write request( "a1 ")
%>
注意value那里使用单引号 ',或者不用引号
------解决方案-------------------- <input type= "text " name= "STIMULUSTITLE " value= " <%=rs( "STIMULUSTITLE ")%> ">
是这个文本框要显示数据库的值,我要怎么改啊?:)
------------------------
value那里改成value= ' <%=replace(rs( "STIMULUSTITLE "), " ' ", " ")%> '