使用ubb如何修改

yaochange 2003-12-10 03:44:24
我使用UBB定义文本域格式,存储到数据库都对,就是修改时再加一分段或使用加粗字体显示时,出来sdafsdf 而不是被加粗后的字
...全文
97 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
yaochange 2003-12-12
  • 打赏
  • 举报
回复
谢了
yaochange 2003-12-12
  • 打赏
  • 举报
回复
谁有UBB完整的例子给我看看吗?谢谢,邮箱:moongirl-2000@163.com
avonqin 2003-12-12
  • 打赏
  • 举报
回复
痛苦,嘿嘿~~~又没人
yaochange 2003-12-12
  • 打赏
  • 举报
回复
达到
avonqin 2003-12-11
  • 打赏
  • 举报
回复
你的表单代码是怎样的?更新代码是怎样的?UBB转换代码又是怎样的?这样问问题,肯定没人回答!
yaochange 2003-12-11
  • 打赏
  • 举报
回复
我修改的时候,第一次可以,修改第二次时就是带html符号了,为什么?
yaochange 2003-12-10
  • 打赏
  • 举报
回复
??
yaochange 2003-12-10
  • 打赏
  • 举报
回复
这是我提交表单时的代码

<!--#include file="check.asp"-->
<!--#include file="db/conn.asp"-->
<!--#include file="char.asp"-->
<%
dim rs,sql
dim z_title2
dim z_information
dim founderr
dim z_id
dim z_fabao
dim z_pihao
founderr=false
if trim(request.form("z_title2"))="" then
founderr=true
errmsg="<li>文章名不能为空</li>"
end if
if trim(request.form("z_information"))="" then
founderr=true
errmsg=errmsg+"<li>文章内容不能为空</li>"
end if

if founderr=false then
z_title2=htmlencode(request.form("z_title2"))
z_pihao=request.form("z_pihao")
z_fa=request.Form("z_fa")
z_bao=request.Form("z_bao")
z_dengji=request.Form("z_dengji")
if request("htmlable")="yes" then
z_information=htmlencode(request.form("z_information"))
else
z_information=ubbcode(request.form("z_information"))
end if


set rs=server.createobject("adodb.recordset")
if request("action")="add" then
call newsoft()
elseif request("action")="edit" then
call editsoft()
else
founderr=true
errmsg=errmsg+"<li>没有选定参数</li>"
end if
sub newsoft()
sql="select * from zhiban"
rs.open sql,conn,1,3
rs.addnew
rs("z_title2")=z_title2
rs("z_information")=z_information
rs("z_fa")=z_fa
rs("z_bao")=z_bao
rs("z_pihao")=z_pihao
rs("z_dengji")=z_dengji
rs("z_date")=now()
rs.update
z_id=rs("z_id")
end sub
sub editsoft()
sql="select * from zhiban where z__id="&request("z_id")
rs.open sql,conn,1,3
rs("z_title2")=z_title2
rs("z_information")=z_information
rs("z_pihao")=z_pihao
rs("z_fa")=z_fa
rs("z_bao")=z_bao
rs("z_dengji")=z_dengji
rs.update
z_id=rs("z_id")
end sub
end if
response.redirect "nmanage1.asp"
%>
Primer2002cn 2003-12-10
  • 打赏
  • 举报
回复
关注

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧