title: Why this zend example stops working when I add a hash to the form
body: <p>I'm following this example tutorial</p>
  
  <p>project code: <a href="http://akrabat.com/wp-content/uploads/zf-tutorial-layoutform.zip" rel="nofollow">http://akrabat.com/wp-content/uploads/zf-tutorial-layoutform.zip</a></p>
  
  <p>tutorial: <a href="http://akrabat.com/zend-framework/a-form-in-your-layout/" rel="nofollow">http://akrabat.com/zend-framework/a-form-in-your-layout/</a></p>
  
  <p>The project code runs as expected, until I add a hash element to the form. All I do is add this code in the form under application/forms/Signup.php </p>
  
  <pre><code>$hash = new Zend_Form_Element_Hash('hash');
  $hash-&gt;setSalt('mysalt');
  $this-&gt;addElement($hash);
  </code></pre>
  
  <p>This extra bit of code throws everything off. When I submit the form now, it gives me the error that the 2 tokens don't match. </p>
  
  <p>Some troubleshooting: </p>
  
  <ul>
  <li>The problem is not the hash itself because it works fine in my other examples. </li>
  <li>I think has to do with how the request is being handled in this example, but not sure what the problem is exactly. I thought it had to do with the hop count, but when I edit Zend_Form_Element_Hash and changed the hop count from 1 to 100, I still got the same error.</li>
  </ul>
  
  <p>That's the extent of troubleshooting I could think of at my level of expertise with Zend. So thought it's time to ask the big brains. I'm hoping someone can figure it out.</p>