title: How to send form values to the route of the controller using Symfony2
body: <p>is it possible to send variables that are in the form, to the route of a controller? </p>
  
  <p>Example:</p>
  
  <p>FormType:</p>
  
  <pre><code>public function buildForm(FormBuilderInterface $builder, array $options)
      {    
          $builder-&gt;add('status', 'entity', array( 'class' =&gt; 'ADVD:Status', 
                          'label'   =&gt; 'form.country', 
                          'translation_domain' =&gt; 'ADVDBundle',
                          'empty_value'=&gt; '- Select -', 
                          'property' =&gt; 'name'))
  
                  -&gt;add('country', 'entity', array(
                          'class' =&gt; 'ADVD:Country', 
                          'label'   =&gt; 'form.country', 
                          'translation_domain' =&gt; 'ADVDBundle',
                          'empty_value'=&gt; '- Select -', 
                          'property' =&gt; 'description'));
  
      }
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code> public function groupPrizesRequestedAction($status = 0, $country = 0) {
          switch ($status) {
              case 1:
                  break;
              case 2:
                  break;
              case 3:
                  break;
              case 4:
                  break;
              case 5:
                  break;
              case 6:
                  break;
              case 7:
                  break;
              case 8:
                  break;
              case 9:
                  break;
              case 10:
                  break;
              case 11:
                  break;
              default:
                  $formulario = $this-&gt;createForm(new GroupingType());
                  return $this-&gt;render('ADVDBundle:Prize:groupIndex.html.twig', array('form' =&gt; $formulario-&gt;createView())
                  );
                  break;
          }
      }
  </code></pre>
  
  <p>Template:</p>
  
  <pre><code>    {% block body %}
      &lt;form action="{{ path('advd_status', {'status': X, 'country': X}) }}" method="post" {{ form_enctype(form) }}&gt;
  {{ form_widget(form) }}
              &lt;input class="input_button" type="submit" value="Search" /&gt;
          &lt;/form&gt;
  {% endblock %}
  </code></pre>
  
  <p>The GroupIndex template is a search template, the idea is that after those values are selected from a dropdown you press search and it searches with the parameters of country and status that the form sends, the thing is I don't know how to make the controller receive those values because I don't know what to put here  <code>path('advd_status', {'status': X, 'country': X})</code> and I need them to the switch on the Controller.</p>