title: How can i pass variables in Zend?
body: <p>I have a form on my index, and when it valid, it redirects to a new view, and i want on that new view to get the name that was entered in the form, how can i do that?</p>
  
  <p>my controller:</p>
  
  <pre><code>public function indexAction()
  {
      // action body
      $eform = new Application_Form_Eform();
      if ($this-&gt;_request-&gt;isPost()) {
          $formData = $this-&gt;_request-&gt;getPost();
          if ($eform-&gt;isValid($formData)) {
              $nameInput  =   $eform-&gt;getValue('nameInput');
              $this-&gt;_helper-&gt;redirector-&gt;gotoRoute(array('controller'=&gt; 'index','action' =&gt;'result', 'email' =&gt; $nameInput));
              $this-&gt;_helper-&gt;redirector('result');
              exit;
          } else {
              $eform-&gt;populate($formData);
          }
      }
  
      $this-&gt;view-&gt;form = $eform;
  }
  
  public function resultAction()
  {
      $nameInput = $this-&gt;_getParam('email');
      $this-&gt;view-&gt;email = $nameInput;
  }
  </code></pre>
  
  <p>result.phtml</p>
  
  <pre><code>&lt;?php echo $this-&gt;name;?&gt;
  </code></pre>
  
  <p>how can i pass the variable <code>name</code> that was entered in the form and display it on the new view of <code>resultAction</code> ? Thanks!</p>