title: Change the URL structure using PHP
body: <p>I want the URL structure like </p>
  
  <pre><code> www.xyz.com/variable/value
  </code></pre>
  
  <p>I have one form with action URL is same page only and method GET.. When the user enter the value and submit the form i need the url like above in the url bar. I knew if usually using GET method the url like </p>
  
  <pre><code> www.xyz.com?variable=value 
  </code></pre>
  
  <p>only. But I don't want this.. Help me if anyone know the answer. </p>
  
  <pre><code>&lt;?php
  $get_variable = $_GET['variable'];
  ?&gt;
  
  &lt;html&gt;
  &lt;form method="get" action="&lt;?php echo $_SERVER['PHP_SELF'];?&gt;"&gt;
      &lt;input type="text" name="variable" /&gt;
      &lt;input type="submit" value="save"&gt; 
  &lt;/form&gt;
  &lt;/html&gt;
  </code></pre>