title: WordPress form two queries on one submission
body: <p>I made a form with such a code:</p>
  
  <pre><code>    &lt;form name="wyszukiwarka" id="wyszukiwarka" class="wyszukiwarka" &gt;
          &lt;select class="miasto" id="pa_miasto" name="pa_miasto"&gt;
              &lt;option class='opcja' value='miastoValue'&gt;MiastoValue&lt;/option&gt;
              ....      
          &lt;/select&gt;
          &lt;select class="typ-ogloszenia" id="product_cat" name="product_cat" required &gt;     
              &lt;option class='opcja' value='ProductCatValue'&gt;TypValue&lt;/option&gt;
              .....
          &lt;/select&gt;
  
          &lt;input type="submit" value = "Szukaj" &gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>What I want it to do is:</p>
  
  <ol>
  <li>User chooses value from <code>pa_miasto</code> and <code>product_cat</code></li>
  <li>User submits form</li>
  <li>User gets query like this: <code>mysite.com/category/ProductCatValue/?pa_miasto=miastoValue</code></li>
  </ol>
  
  <p>I'm using GET method right now and it's working like this:</p>
  
  <ul>
  <li>When I choose only one select and submit, it goes right into the proper category without any database '?' query in URL;</li>
  </ul>
  
  <blockquote>
    <p>Example: mysite.com/category/ProductCatValue</p>
  </blockquote>
  
  <ul>
  <li>When I choose both selects and submit, it doesn't go to any category, it just searches database with '?' query using both parameters (<code>pa_miasto</code> and <code>product_cat</code>);</li>
  </ul>
  
  <blockquote>
    <p>Example: mysite.com/?product_cat=ProductCatValue&amp;pa_miasto=miastoValue</p>
  </blockquote>
  
  <p>So the thing I want to achieve is a bit like halfway between these two actions.</p>
  
  <p>My question is: Is it some kind WordPress function that redirects to proper category while getting fitting argument keys or is it something else?</p>
  
  <p>The second question is: Can I somehow split this query into two on one submission to get the result I want? (for example, using some Javascript function).</p>
  
  <p>I hope it's clear. I just want to reduce the amount of options in the further filtering. I can provide site URL if there would be some problems with understanding.</p>