大家帮我看一下要怎么样修改才使得读出来的留言内容带有格式呢,

来源:百度知道 编辑:UC知道 时间:2024/09/20 14:47:31
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>留言本</title>
<style type="text/css">
<!--
.STYLE1 {font-size: 24px}
.for {
text-align: center;
}
-->
</style>
</head>

<body>
<div align="center" class="STYLE1">留言页面 </div>

<% '下面form表单是提交到ACCESS数据库的留言内容 %>
<form id="form1" name="form1" method="POST" action="<%=MM_editAction%>">
您的网名
<label>
<input name="name" type="text" id="name" />
    <br />
         <br />
</label>
您的QQ  
<label>
<input name="qq" type="text" id="

试试这个函数:
function encodestr(str)
str=trim(str)
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,"'","""")
str=replace(str,vbCrLf&vbCrlf,"</p><p>")
str=replace(str,vbCrLf,"<br>")
encodestr=replace(str," "," ")
end function
用在把留言存储到数据库中之前,先将留言文本处理之后再存入数据库。