title: How do I omit variable names from URI when submitting an html form?
body: <p>I have the following search form on my php project :</p>
  
  <pre><code>&lt;form method="get" action="/search/" /&gt;
    &lt;input type="text" name="q" /&gt;
    &lt;input type=submit&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When I submit the form, the URI is mysite.com/search/?q=sample+query , but I want it to be like mysite.com/search/sample+query/ . Is there a way to achieve this within php?</p>