自定义表单,加一个数字型字段,自设为隐藏,并将{$GetArticleID}的值赋给,来完成自定义表单的输入
接下来就是调用
SQL:select * from ks_form_comment where KS_ID={ReqStr(id)} and status=1 order by adddate desc
循环体:
<dl>[loop={$Param(0)}]<dt><strong>{$Field(KS_name,Text,30,0,0,)}({$Field(UserIP,Text,0,0,0,)}) </strong>发表于<strong class="comment_date">{$Field(AddDate,Date,YYYY-MM-DD hh:mm:ss)}</strong></dt><dd>{$Field(KS_content,Text,0,300,0,)}<br/></dd>[/loop]</dl>
演示: