title: how to, hidden field value not showing up on request in zend framework?
body: <p>i have a simple form that has a textarea ans a hidden field</p>
  
  <pre><code>    $textarea = new Zend_Form_Element_Textarea('post');
      $textarea-&gt;setRequired(true);
      $textarea-&gt;setLabel('');
  
      $hidden = new Zend_Form_Element_Hidden('post_id');
      $hidden-&gt;setLabel('');
      $hidden-&gt;setValue('1');      
  
      $submit = new Zend_Form_Element_Submit('submit');
      $submit-&gt;setLabel('test');
  
      $this-&gt;addElement($textarea);
      $this-&gt;addElement($hidden);
      $this-&gt;addElement($submit);
  
      $this-&gt;setDecorators(array(
          'FormElements',
           array('HtmlTag', array('tag' =&gt; 'div', 'class' =&gt; 'form_class')),
          'Form'
      ));
  </code></pre>
  
  <p>in my view i do</p>
  
  <pre><code>&lt;?php echo $this-&gt;form-&gt;getElement('post')-&gt;render(); ?&gt;
  &lt;?php echo $this-&gt;form-&gt;getElement('submit')-&gt;render(); ?&gt;
  </code></pre>
  
  <p>then in my controller</p>
  
  <pre><code>    $request = $this-&gt;getRequest();
      if( $request-&gt;isPost() &amp;&amp; $form-&gt;isValid($request-&gt;getParams()))
      {
          Zend_Debug::dump($request-&gt;getParams());
      }
  </code></pre>
  
  <p>what happens is that i get</p>
  
  <pre><code>array(8) {
    ["module"] =&gt; string(6) "testr"
    ["controller"] =&gt; string(8) "posts"
    ["action"] =&gt; string(9) "post"
    ["post"] =&gt; string(10) "testgfdgfg"
    ["submit"] =&gt; string(26) "submit"
  }
  </code></pre>
  
  <p>but no <code>post_id</code></p>
  
  <p>this is a bit wired and i cant figure it out. Ive looked for any code that might screw this up but nothing. I've also tried to echo the hidden field in the view, but i still get nothing on the request</p>
  
  <p>any ideas?</p>
  
  <p>thanks</p>