感谢两位的指教,附comentform文件代码如下
<div class="comments-body">
<form name="comments_form" action="{$url->getBaseUrl()}/index.php" method="post">
<div style="width:180px; padding-right:15px; margin-right:15px; float:left; text-align:left; border-right:1px dotted #bbb;">
<label for="author">{$locale->tr("comment_username")}:</label><br />
<input tabindex="2" id="author" name="userName" /><br /><br />
<label for="email">{$locale->tr("comment_email")}:</label><br />
<input tabindex="3" id="email" name="userEmail" /><br /><br />
<label for="url">{$locale->tr("comment_url")}:</label><br />
<input tabindex="4" id="url" name="userUrl" /><br /><br />
{if $authimage->isEnabled()}
<div><label for="authImage">AuthImage</label><input type="text" name="authImage" id="authImage" value="" /> {$authimage->show()}</div>
{/if}
</div>
<div>
<label for="text">{$locale->tr("add_comment")}:</label><br />
<div id="toolbar">
<img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);"
onMouseDown="mousedown(this);" onMouseUp="mouseup(this);" onClick="wrapSelection(document.comments_form.commentText, 'b');"
src="{$url->getUrl("/templates/black/bold.gif")}" width="16" height="16" align="middle" alt="Bold" />
<img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onMouseDown="mousedown(this);"
onMouseUp="mouseup(this);" onClick="wrapSelection(document.comments_form.commentText, 'i');" src="{$url->getUrl("/templates/black/italic.gif")}"
width="16" height="16" align="middle" alt="Italic" />
<img class="button" onMouseOver="mouseover(this);" onMouseOut="mouseout(this);" onmousedown="mousedown(this);"
onmouseup="mouseup(this);" onclick="insertLink(document.comments_form.commentText);" src="{$url->getUrl("/templates/black/link.gif")}"
width="16" height="16" align="middle" alt="Link" />
</div>
<textarea tabindex="5" id="text" name="commentText" rows="10" cols="50"></textarea><br /><br />
<input style="font-weight: bold;" type="submit" name="post" value=" {$locale->tr("comment_send")} " /><br /><br />
<input type="hidden" name="op" value="AddComment"/>
<input type="hidden" name="articleId" value="{$post->getId()}"/>
<input type="hidden" name="blogId" value="{$blog->getId()}"/>
<input type="hidden" name="parentId" value="{$parentId}"/>
</div>
</form>
</div>