title: Drupal 6: form_state values empty on submit
body: <p>I'm trying to create a custom form in Drupal 6 and everything seems to work okay with the code below including when submitted a new entry is created in the database however all the $form_state values are empty. What am I missing?</p>
  
  <pre><code>&lt;?php
  function rate_form($form_state) {
    $form = array();
    $form['rate']['name'] = array(
      '#type' =&gt; 'textfield',
      '#title' =&gt; t('Name'),
      '#size' =&gt; 30,
      '#maxlength' =&gt; 100,
      '#required' =&gt; TRUE,
    );
    $form['rate']['description'] = array(
      '#type' =&gt; 'textarea',
      '#title' =&gt; t('blah, blah'),
      '#maxlength' =&gt; 1500,
    );
    $form['rate']['submit'] = array('#type' =&gt; 'submit', '#value' =&gt; t('Rate!'));
    return $form;
  }
  
  print drupal_get_form($form_id);
  
  function rate_form_submit($form_id, &amp;$form_state) {
    db_query("INSERT INTO {rate_comments} (name, description) VALUES ('%s', '%s')", $form_state['values']['rate']['name'], $form_state['values']['rate']['description']);
    drupal_set_message(t('Thank you! Your rating has been added.'));
  }
  ?&gt;
  </code></pre>