title: PHP variable to URL in address bar
body: <p>I have the code:</p>
  
  <pre><code>echo('
   &lt;div class="row"&gt;
      &lt;div class="col-sm-2" &gt; 
      &lt;form method="POST" action="plan.php"&gt;
  &lt;p&gt;Selectati data raportului:&lt;br&gt;
   &lt;select name="SelectDR" onchange="form.submit()"&gt;
   &lt;option value=""&gt;Select...&lt;/option&gt;
  '); 
  </code></pre>
  
  <p>It is a form from which I select a value.</p>
  
  <pre><code>$option = isset($_POST['SelectDR']) ? $_POST['SelectDR'] : false;
  if ($option){
      $queryTXT = "SELECT * FROM ".$tabel." WHERE DataRaport='".$option."'";
  ...
  </code></pre>
  
  <p>The records of a SQLtable are filtered by the value selected from the form.</p>
  
  <p>Now, what I want is to display in the url <em>plan.php?DataRaport&amp; variable php</em></p>
  
  <p>I've tried to put in the form url (<code>&lt;form method="POST" action="plan.php?DataRaport'.$option.'"&gt;</code>), but that doesn't show the variable.</p>