title: in drupal 7, how to submit a form without redirecting to the comment page or message page?
body: <p>I have made a message form and comment form as blocks and embedded the blocks in a view, whenever I submit the message / comment form, the page will redirect to the message / comment page.</p>
  
  <p>This is code:</p>
  
  <pre><code> $node = node_load($nid); // $nid contains the node id        
   $comment = new stdClass;
   $comment-&gt;nid = arg(2);
   $form = drupal_get_form('comment_node_project_form', $comment);
   print render($form);
  </code></pre>
  
  <p>How should I do to submit the form without redirecting ? on the $form variable ?</p>