title: Language configuration (change url and refresh page on DropDown change)
body: <p>I am setting up a multilanguage website. </p>
  
  <p>I have a dropdown where there is a set of languages that I cover. </p>
  
  <p>I would like script, when dropdown changes, add or replace variable to url and refresh the page.</p>
  
  <p>I do not want to store language in session or cookie. </p>
  
  <p>My goal is that search egnines indexes all my multilanguage pages and to have url rewritting so my URL would look like <a href="http://www.index.php/EN/home" rel="nofollow">http://www.index.php/EN/home</a>, which I will cover later.</p>
  
  <p>Currently I have a DropDown which sumbits form on change:</p>
  
  <pre><code>echo "&lt;select name='lang'  onchange='this.form.submit()'&gt;";     
  $array = oci_parse($conn, "SELECT code, name FROM languages");
  oci_execute($array);
  
  while ($row  = oci_fetch_array($array))
  {
      if ($lang == $row[0])
      {
          echo "&lt;option value=".$row[0]." selected='selected'&gt;".$row[0]."&lt;/option&gt;";
      }
      else
      {
          echo '&lt;option value='.$row[0].'&gt;'.$row[0].'&lt;/option&gt;';
      }
  }            
  echo '&lt;/select&gt;';
  </code></pre>