K9 通用版 博客版 主题版 地方门户版 企业版 |   企业(ASP) 分类 使用 分享 疑问 模板 建议 帮助 错误 其他
+新建主题 [Ajax]
填写帐号密码即可完成注册
+新建话题 最新回复排序 最新主题排序 精华帖子

评论让游客填写字段写入到数据库kusername

1Next >

77921020 发表于:10-11-21 01:21 [添加收藏] 楼主 [回复] #Top#
77921020 人气:0 积分:4 金币:0

评论怎么加个发表人字段 怎么写语法才能让自己建的字段提交到 kusername
 I1="<div class=""k_form"">"
 'I1=I1&king.ubbshow("k_comment_content",htmlencode(content),60,10,0)
 I1=I1&"<p><textarea id=""k_comment_content"" rows=""6"" cols=""60"" class=""k_in4"">"&formencode(content)&"</textarea>"
 if len(content)>0 and len(commentid)=0 then
  I1=I1&king.check("content|6|"&encode(kc.lang("check/content"))&"|1-"&data(0,0)&";"&king.dirty(content)&"|13|"&encode(kc.lang("check/dirty"))&";"&kc.judge(content,I2(0),I2(1))&"|13|"&encode(kc.lang("check/judge")))
 end if
 I1=I1&"</p>"
 I1=I1&"<div><input type=""submit"" onclick=""posthtm('"&king.page&kc.path&"/index.asp?action=post','k_comment_post','comment="&jscomment&"&content='+encodeURIComponent(document.getElementById('k_comment_content').value))"" value="""&kc.lang("common/post")&""" />(1-"&data(0,0)&")</div>"
 I1=I1&"</div>"

 if len(commentid)=0 and king.ischeck and len(content)>0 then

  floor=king.neworder("king__"&I2(0)&"_comment where kid="&I2(1),"kfloor")

  if king.ischeck and king.ismethod then

   if king.checkcolumn("king__"&I2(0)&"_comment")=false then install I2(0)

   conn.execute "insert into king__"&I2(0)&"_comment (kid,kcontent,kusername,kisview,kuserip,kfloor,kdate) values ("&safe(I2(1))&",'"&safe(content)&"','"&king.name&"',"&data(1,0)&",'"&safe(king.ip)&"',"&floor&",'"&tnow&"')"
   '更新用户日志数据
   kc.log content,I2(0),I2(1)
   '生成
   kc.create jscomment
   I1="<p>"&kc.lang("alert/postok")&"</p>"
   I1=I1&"<p><a href=""javascript:;"" onclick=""gethtm('/"&kc.path&"/"&I2(0)&"/"&I2(1)&"/"&king_ext&"','k_comment')"">"&kc.lang("common/raw")&"</a></p>"
   I1=I1&"<p><a href=""javascript:;"" onclick=""posthtm('"&king.page&kc.path&"/index.asp?action=post','k_comment_post','post="&jscomment&"')"">"&kc.lang("common/postnext")&"</a></p>"

1Next >

发表回复

帐号 匿名发布 审核后可见 [加载完整在线编辑器]
内容
验证码
KingCMS 内容管理系统

关于我们 联系我们 广告报价 付款方式 站点导航

Copyright © 2004-2015 Focuznet All rights reserved.

广州唯众网络科技有限公司 粤ICP备08008106号