title: Convert input text to lowercase on submitting a form
body: <p>I have a form in which there is one text field is provided with a submit button.On clicking submit button,it redirects to second php page from first php page.
  index.php</p>
  
  <pre><code>&lt;form action="submit.php" method="get"&gt;
  
  &lt;input type="text" name="search" id="search" /&gt;
  &lt;input type="submit" value="submit" onclick="convert()" /&gt;
  &lt;/form 
  
  &lt;script type="text/javascript"&gt;
  function convert() 
  {
      alert("hi");
      var str ;
      str = document.getElementById("search").value;
      document.writeln(str.toLowerCase());
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>On submitting the form,i want the url to become like submit.php?search=text</p>
  
  <p>I want this text to be in lower case,although if text entered is uppercase.
  Please guide me how to make this text lower case,I am using the above script for converting it to lower case.But its not converting the text in lower case in URL.</p>
  
  <p>Please guide me on this..</p>