.php
if($_POST['comments'] == 1) {
$zapytanie = "INSERT INTO `comments` (`id`, `text`, `author`, `date`, `id_rubric`, `rubric`)
VALUES ('', '$value', '$login2', '$date', '$idcm', 'news')" ;
$zapytanie1 = "UPDATE `news` SET `commnets` = '$acm1' WHERE `id`='$idcm'";
}
.tpl
<form method="post" action="index.php?id=comments&cm={$news.id}"> <div style="margin-left: 100px;"> <td><textarea name="text" style="border: 0px; font-size: 14px; outline-color: #6c6c6c;outline-style: solid; outline-width: 1px; background-color: #2b2a2a; color: #bababa; width: 320px; height: 130px;"> </textarea> <td style="padding-left: 15px;"> <img style="margin-bottom: 7px;" src="templates/images/naruto.jpg"><br><input type='hidden' name='comments' value='1' /><input type="image" src="templates/images/addcomments.jpg" value="1" /></td>
brak pomysłów ?