Can't find View's Filters variables I'm trying to create a button that create a new content type based on the one selected in the view filter. I have had some problems finding the correct variables to use them in that case. I'm actually new in the drupal community (so don't be mean if my question is irrelevant for you).

Edit: The code is the one provided as an example for the view with seven as a theme. The part i want to edit is this one :

  **&lt;?php if ($exposed): ?&gt;
    &lt;div class="view-filters"&gt;
      &lt;?php print $exposed; ?&gt;
      &lt;?php
      /**
       * Création d'un bouton de rajout de proposition (yes, this is french ^^)
       */?&gt;
     &lt;?php
         $chemin = "../node/add"; // i want this URL to be dynamic and to change each time           
         //someone clic on a new option in the exposed filter. E.G. if he clics on volvo,     the 
         //button should show "add a new volvo car" with the proper link
    print"&lt;a href=\"".$chemin."\"&gt;
    &lt;input type=\"submit\" class=\"button\" name=\"Ajout Type de Contenu\" value=\"Ajouter     une XXX\" /&gt; 
    &lt;/a&gt;" ; 
      ?&gt;
    &lt;/div&gt;
  &lt;?php endif; ?&gt;**


Thanks !
If I understand correctly your current problem is getting the current values of the exposed filters.

Wherever you are putting your code, as long as you have access to the view object you can get these values using view::get_exposed_input() like this:

$filters = $view-&gt;get_exposed_input();
// You can then access the value of a specific filter like this.
$value = $filters['FILTER_NAME'];


You can then use those values to implement whatever logic you require.