title: Module development: hook_form(), hook_menu() and how to get $_POST
body: <p>I want to improve my knowledge in module development (which is far away from basic), so I try to develop a perimeter search module.
  What I've achieved for now is a block containing a form:</p>
  
  <pre><code>function perimeter_search_block_view($delta = '') {
    // Define an empty array for the block output.
    $block = array();
  
    switch($delta) {
      case 'perimeter_search_box':
        $block['subject'] = t('Perimeter search box');
        $block['content'] = drupal_get_form('perimeter_search_form');;
        break;
    }
  
    return $block;
  }
  
  /**
  * Implementation of the perimeter search form
  * @return array with form data
  */
  function perimeter_search_form($form, &amp;$form_state) {
    $form = array(
      '#action' =&gt; 'perimeter-search-results',
      'keyword' =&gt; array(
        '#type' =&gt; 'textfield'
      ),
      'location' =&gt; array(
        '#type' =&gt; 'textfield'
      ),
      'perimeter' =&gt; array(
        '#type' =&gt; 'select',
        '#title' =&gt; t('Perimeter'),
        '#options' =&gt; array('15 km', '30 km', '60 km', '120 km')
      ),
      'submit' =&gt; array(
        '#type' =&gt; 'submit',
        '#value' =&gt; t('Start search')
      )
    );
  
    return $form;
  }
  </code></pre>
  
  <p>I also have a function to output the search results:</p>
  
  <pre><code>/**
  * Implementation of hook_menu()
  * @return defined menu/page items
  */
  function perimeter_search_menu() {
    $items = array();
  
    // Search results page
    $items['perimeter-search-results'] = array(
      'title' =&gt; t('Perimeter search results'),
      'page callback' =&gt; 'perimeter_search_results',
      'access arguments' =&gt; array('view perimeter search'),
      'type' =&gt; MENU_NORMAL_ITEM
    );
  
    return $items;
  }
  
  /**
  * Processing job search queries
  */
  function perimeter_search_results() {
    $page_content = t('Search results');
    return $page_content;
  } 
  </code></pre>
  
  <p>My (simple?) question is: how to get the post data (keyword, location, perimeter) in my perimeter_search_results() function?</p>