D7 comment form doesn't submit
Try next:

// ...
$comment-&gt;nid = $row-&gt;nid;
$form = drupal_get_form('comment_form', $comment);
$form['#redirect'] = 'CHANGE_VIEWSPAGE_HERE?page=' . (int)$_GET['page'];
print render($form);