Learning PHP and MySQL
Wednesday, September 27, 2006
Example 16-17 comment_form.tpl
{section name=mysec loop=$comments}
<form action="modify_comment.php" method="post">
<label> Title:
<input type="text" name="title" value="{$comments[mysec].title}" />
</label>
<br />
<br />
<label> Body:
<textarea name="body" cols="40" rows="4">{$comments[mysec].body}</textarea>
</label>
<input type="hidden" name="action" value="{$action}" />
<input type="hidden" name="post_id" value="{$post_id}" />
<input type="hidden" name="comment_id" value="{$comments[mysec].comment_id}" />
<br /><br />
<input type="submit" name="submit" value="Post" />
</form>
{/section}
Posted by krautgrrl on 09/27 at 12:36 PM
Chapter 16 Code • (9) Comments • (212) Trackbacks • Permalink
Chapter 16 Code • (9) Comments • (212) Trackbacks • Permalink
Statistics
This page has been viewed 375234 times
Page rendered in 0.1406 seconds
Total Entries: 224
Total Comments: 16
Total Trackbacks: 307338
Most Recent Entry: 09/27/2006 12:39 pm
Most Recent Comment on: 10/26/2007 10:00 am
Total Members: 2
Total Logged in members: 0
Total guests: 10
Total anonymous users: 0
Most Recent Visitor on: 02/10/2012 11:26 am
The most visitors ever was 1103 on 11/20/2007 12:50 pm
