How include hash (#) in drupal_goto path?
For Drupal 6,

It should be 3rd parameter 

drupal_goto($path = '', $query = NULL, $fragment = NULL, $http_response_code = 302)

drupal_goto("products", NULL, $node-&gt;nid);


For Drupal 7

drupal_goto($path = '', array $options = array(), $http_response_code = 302)
drupal_goto("products", array('fragment' =&gt; $node-&gt;nid));