Drupal form submission to another page Below is my form and form submission function. The form is displayed in page-front.tpl.php. Using this code i could print $_POST variable in the front page. But i would like to submit to some other page say page-result.tpl.php. How could i do that without using $_session variables

    function q_search_form($form_state) {

$form['category'] = array(
    '#type' =&gt; 'select',
    '#options' =&gt; array('' =&gt; 'Any', 2 =&gt; 'Automotive', 1 =&gt; 'Real Estate'),
    '#attributes' =&gt; array('class' =&gt; 'drop-box'),
    '#prefix' =&gt; '&lt;table width="470"&gt;&lt;tr&gt;&lt;td width="170"&gt;Select Category&lt;/td&gt;&lt;td width="300"&gt;',
    '#suffix' =&gt; '&lt;/td&gt;&lt;/tr&gt;'
);
$form['city'] = array(
    '#type' =&gt; 'select',
    '#options' =&gt; array('' =&gt; 'Any', 'kozhikode' =&gt; 'Kozhikode', 'kochi' =&gt; 'Kochi'),
    '#attributes' =&gt; array('class' =&gt; 'drop-box'),
    '#prefix' =&gt; '&lt;tr&gt;&lt;td width="170"&gt;City&lt;/td&gt;&lt;td width="300"&gt;',
    '#suffix' =&gt; '&lt;/td&gt;&lt;/tr&gt;'
);
$form['property'] = array(
    '#type' =&gt; 'select',
    '#options' =&gt; array('' =&gt; 'Any', 18 =&gt; 'Land and House', 17 =&gt; 'Land'),
    '#attributes' =&gt; array('class' =&gt; 'drop-box'),
    '#prefix' =&gt; '&lt;tr&gt;&lt;td width="170"&gt;Property&lt;/td&gt;&lt;td width="300"&gt;',
    '#suffix' =&gt; '&lt;/td&gt;&lt;/tr&gt;'
);
$form['wanto'] = array(
    '#type' =&gt; 'select',
    '#options' =&gt; array('' =&gt; 'Any', 'sell' =&gt; 'Sell', 'buy' =&gt; 'Buy'),
    '#attributes' =&gt; array('class' =&gt; 'drop-box'),
    '#prefix' =&gt; '&lt;tr&gt;&lt;td width="170"&gt;Want to&lt;/td&gt;&lt;td width="300"&gt;',
    '#suffix' =&gt; '&lt;/td&gt;&lt;/tr&gt;'
);
$form['submit'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Search'),
    '#attributes' =&gt; array('id' =&gt; 'Search', 'class' =&gt; 'srch-button'),
    '#prefix' =&gt; '&lt;tr&gt;&lt;td&gt;&lt;a class="adv-srch" href="#"&gt;Advance Search&lt;/a&gt;&lt;/td&gt;&lt;td&gt;',
    '#suffix' =&gt; '&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;'
);


return $form;
}


  function q_search_form_submit($form, &amp;$form_state) {
    $wantto = $form_state['values']['wanto'];
    $property = $form_state['values']['property'];
    $city = $form_state['values']['city'];
    $category = $form_state['values']['category'];

    $sql = ' SELECT A.nid FROM node A 
        LEFT JOIN content_type_item B ON A.vid = B.vid
        LEFT JOIN term_node C ON A.vid = C.vid
        LEFT JOIN term_hierarchy D ON D.tid = C.tid
        WHERE A.type = "item" 
        AND B.field_tr_type_value = "'.$wantto.'"
        AND B.field_city_value = "'.$city.'"
        AND D.parent = '.$category.'
        AND C.tid = '.$property.'
      ';
   $result = db_query($sql);   
  while ($row = db_fetch_array($result)) {
     $output['srch_result_nid'][] = $row['nid'];
    }


  $form_state['rebuild'] = TRUE;


  }
In your form_submit, add $form_state['redirect'] = &lt;your_url&gt;, at the end.