title: URL encoding in PHP
body: <p>I am trying to see if url encoding of get parameters while submitting a form is possible. I have seen a few resources where url encoding is being is used where the URLs are built dynamically </p>
  
  <pre><code>ex: www.google.com?query=urlencode($query)
  </code></pre>
  
  <p>But how do I apply the function url encode if I am using a form and a submit button. </p>
  
  <pre><code>&lt;html&gt;
          &lt;body&gt;
                  &lt;form action="send.php" method="get"&gt;
                  &lt;input type="input" name="method" value="" /&gt;
                  &lt;input type="submit" name="submit" value="submit"/&gt;
                  &lt;/form&gt;
          &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>