bu arada şöyle birşey yapmaya çalıştım ama boş gidiyor bu seferde :
form'dan comment2 ve title2 olarak çekiyorum

$title = wordwrap($_POST["title2"], 40, "\n", true);

$comment = wordwrap($_POST['comment2'], 8, "\n", true); 
    $userinfo = $user->userinfo;

    $title = 'My Profile';
    $tpl->output_page ('profile');
}
else if ($_POST['do'] == 'comment')
{
    if (empty($_POST['title2']) || empty ($_POST['comment2']))
    {
        $message = 'Yorum eklemek icin forumu tamamen doldurmalisiniz.';
        $tpl->output_page('error');
    }

    // ##### CHECK FOR file #####
    $file_query = mysql_query ("SELECT * FROM files WHERE file_id = '" . intval ($_POST['file']) . "'");
    if (mysql_num_rows ($file_query) == 0)
    {
        $message = 'You are attempting to add a comment to a file which does not exist.';
        $tpl->output_page('error');
    }

    // ##### ADD COMMENT #####
    mysql_query ("INSERT INTO comments (title, comment, file_id, user_id, added) VALUES ('" . addslashes ($title) . "', '" . addslashes ($comment) . "', '" . intval ($_POST['file']) . "', '" . $user->user['user_id'] . "', '" . time() . "')");