title: Change Form action url Dynamically
body: <p>So I need to change the default url to something much better I have made it to work on .htaccess but I can't do it into the form action...Can someone tell me how to change the form url the form goes to the url </p>
  
  <pre><code>s=thesearch&amp;for=for&amp;genre=genre&amp;lang=lang&amp;quality=quality&amp;rating=rating&amp;orderby=orderby
  </code></pre>
  
  <p>I want to make the form goes to </p>
  
  <pre><code>s=thesearch/for/genre/lang/quality/rating/orderby
  </code></pre>
  
  <p>the form code that goes into the first url:</p>
  
  <pre><code>&lt;form role="search" method="get" class="search-form" action="s="&gt;
      &lt;label&gt;
          &lt;input autofocus autocomplete="off" type="search" class="search-field" placeholder="Search …" value="" name="" title="Search for:"&gt;
      &lt;/label&gt;
      &lt;input type="submit" class="search-submit" value="Search"&gt;
      &lt;!-- Squared THREE --&gt;
  &lt;div class="squaredThree"&gt;
      &lt;input  type="checkbox" id="squaredThree" name="check" /&gt;
      &lt;label for="squaredThree"&gt;
      &lt;div style="font-weight: 700;font-size: 1.1em;color: #5a5a5a;margin-left:25px;margin-top:2px;"&gt;Advanced&lt;/div&gt;
      &lt;div style="font-weight: 700;font-size: 1.1em;color: #5a5a5a;margin-left:98px;margin-top:-20px;"&gt;Search&lt;/div&gt;&lt;/label&gt;
  &lt;/div&gt;
  &lt;script type="text/javascript"&gt;
  
  document.getElementById('squaredThree').onchange = function() {
      document.getElementById('advanced-search').style.display = this.checked ? 'block' : 'none';
  };
  &lt;/script&gt;
      &lt;div id="advanced-search"&gt;
      &lt;span style="font-weight: 700;font-size: 1.2em;color: #5a5a5a;margin-left:70px;"&gt;
      Search For:
      &lt;/span&gt;
      &lt;select name="for" style="margin-left:46px;"&gt;
      &lt;option value="Title" selected="selected"&gt;Title&lt;/option&gt;
      &lt;option value="Actor"&gt;Actor&lt;/option&gt;
      &lt;option value="Writer"&gt;Writer&lt;/option&gt;
      &lt;option value="Director"&gt;Director&lt;/option&gt;
      &lt;option value="Company"&gt;Company&lt;/option&gt;
      &lt;option value="IMDb_ID"&gt;IMDb ID&lt;/option&gt;
      &lt;/select&gt;&lt;br&gt;
      &lt;span style="font-weight: 700;font-size: 1.2em;color: #5a5a5a;margin-left:85px;"&gt;
      Genre:
      &lt;/span&gt;
      &lt;select name="genre" style="margin-left:46px;"&gt;
      &lt;option value="All" selected="selected"&gt;All&lt;/option&gt;
      &lt;option value="Action"&gt;Action&lt;/option&gt;
      &lt;option value="Adventure"&gt;Adventure&lt;/option&gt;
      &lt;option value="Animation"&gt;Animation&lt;/option&gt;
      &lt;option value="Comedy"&gt;Comedy&lt;/option&gt;
      &lt;option value="Crime"&gt;Crime&lt;/option&gt;
      &lt;option value="Drama"&gt;Drama&lt;/option&gt;
      &lt;option value="Family"&gt;Family&lt;/option&gt;
      &lt;option value="Fantasy"&gt;Fantasy&lt;/option&gt;
      &lt;option value="Horror"&gt;Horror&lt;/option&gt;
      &lt;option value="Music"&gt;Music&lt;/option&gt;
      &lt;option value="Musical"&gt;Musical&lt;/option&gt;
      &lt;option value="Mystery"&gt;Mystery&lt;/option&gt;
      &lt;option value="Romance"&gt;Romance&lt;/option&gt;
      &lt;option value="Sci-Fi"&gt;Sci-Fi&lt;/option&gt;
      &lt;option value="Sport"&gt;Sport&lt;/option&gt;
      &lt;option value="Thriller"&gt;Thriller&lt;/option&gt;
      &lt;option value="War"&gt;War&lt;/option&gt;
      &lt;option value="Western"&gt;Western&lt;/option&gt;&lt;/select&gt;
      &lt;span style="font-weight: 700;font-size: 1.2em;color: #5a5a5a;margin-left:82px;"&gt;Subtitle:&lt;/span&gt;
  
      &lt;select name="lang" style="margin-left:46px;"&gt;
      &lt;option value="All" selected="selected"&gt;All&lt;/option&gt;
      &lt;option value="Arabic"&gt;Arabic&lt;/option&gt;
      &lt;option value="Czech"&gt;Czech&lt;/option&gt;
      &lt;option value="Danish"&gt;Danish&lt;/option&gt;
      &lt;option value="Dutch"&gt;Dutch&lt;/option&gt;
      &lt;option value="English"&gt;English&lt;/option&gt;
      &lt;option value="French"&gt;French&lt;/option&gt;
      &lt;option value="German"&gt;German&lt;/option&gt;
      &lt;option value="Greek"&gt;Greek&lt;/option&gt;
      &lt;option value="Indonesian"&gt;Indonesian&lt;/option&gt;
      &lt;option value="Malay"&gt;Malay&lt;/option&gt;
      &lt;option value="Spanish"&gt;Spanish&lt;/option&gt;
      &lt;option value="Swedish"&gt;Swedish&lt;/option&gt;
      &lt;option value="Turkish"&gt;Turkish&lt;/option&gt;
  &lt;/select&gt;
  &lt;span style="font-weight: 700;font-size: 1.2em;color: #5a5a5a;margin-left:82.5px;"&gt;Quality:&lt;/span&gt;
  &lt;select name="quality" style="margin-left:46px;"&gt;
  &lt;option value="All" selected="selected"&gt;All&lt;/option&gt;
  &lt;option value="CAM"&gt;CAM&lt;/option&gt;
  &lt;option value="Non-HD"&gt;Non HD&lt;/option&gt;
  &lt;option value="HD"&gt;HD&lt;/option&gt;
  &lt;option value="Full-HD"&gt;Full HD&lt;/option&gt;&lt;/select&gt;
  
  &lt;span style="font-weight: 700;font-size: 1.2em;color: #5a5a5a;margin-left:85px;"&gt;Rating:&lt;/span&gt;
  &lt;select name="rating" style="margin-left:46px;"&gt;
  &lt;option value="0" selected="selected"&gt;All&lt;/option&gt;
  &lt;option value="9"&gt;9+&lt;/option&gt;
  &lt;option value="8"&gt;8+&lt;/option&gt;
  &lt;option value="7"&gt;7+&lt;/option&gt;
  &lt;option value="6"&gt;6+&lt;/option&gt;
  &lt;option value="5"&gt;5+&lt;/option&gt;
  &lt;option value="4"&gt;4+&lt;/option&gt;
  &lt;option value="3"&gt;3+&lt;/option&gt;
  &lt;option value="2"&gt;2+&lt;/option&gt;
  &lt;option value="1"&gt;1+&lt;/option&gt;
  &lt;/select&gt;&lt;br&gt;
  &lt;span style="font-weight: 700;font-size: 1.2em;color: #5a5a5a;margin-left:76px;"&gt;Order By:&lt;/span&gt;
  &lt;select name="orderby" style="margin-left:46px;"&gt;
  &lt;option value="Latest" selected="selected"&gt;Latest&lt;/option&gt;
  &lt;option value="Oldest"&gt;Oldest&lt;/option&gt;
  &lt;option value="Rating"&gt;Rating&lt;/option&gt;
  &lt;option value="Alphabetical"&gt;Alphabetical&lt;/option&gt;
  &lt;option value="Views"&gt;Views&lt;/option&gt;&lt;/select&gt;
  &lt;/select&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Anyone who knows how to change the form url with something...</p>