title: Symfony - Redirect to action with form values filled in
body: <p>How can I do a redirect to another action, and get the form fields to be filled in on the new action?</p>
  
  <p>I have an action and I want to call redirect() something like:</p>
  
  <pre><code>$this-&gt;redirect('foo/search?Search[last_name]='.$this-&gt;form-&gt;getValue('last_name'));
  </code></pre>
  
  <p>Which should redirect to my Search action, and the form in that action should get the last_name parameter filled in. That action has code like so:</p>
  
  <pre><code>public function executeSearch(sfWebRequest $request)
  {
     $this-&gt;form = new SearchForm();
     $submission = $request-&gt;getParameter($this-&gt;form-&gt;getName());
     ...do stuff with $submission...
  </code></pre>
  
  <p>The SearchForm has the name format 'Search[%s]'.</p>
  
  <p>Nothing I've tried for the parameter to redirect() has worked. The Search[] parameters always get messed up in some way and will not populate the form.</p>