title: pass variable value in action url php
body: <p>How to pass variable values into url. Here is my code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
        if(isset($_POST['submit'])){
         echo $v=$_POST['n'];
        } ?&gt;
  &lt;form method="post" action="/user/&lt;?php echo $v; ?&gt;"&gt;
  &lt;input type="text" name="n"&gt;
  &lt;input type="submit" name="submit" value="Submit"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>After giving input value and click on submit shows in url:</p>
  
  <p>if input value is raj after click on submit in url i want to display</p>
  
  <p>/user/raj</p>