title: How can I pass a simple search query into the URL?
body: <p>I have a search form on my site, 
  and I want to pass the text in the form to the URL,
  like: mysite.com/search.php?q=apples (if search word was apples).<br>
  I figure that way people can bookmark their searches.</p>
  
  <p>One solution I thought would be to catch the searchword in search.php and then reload into a new made URL.  But it's not very elegant to reload like that.  So how can I do it - I mean, how is it normally done?  Do I need to use jQuery?</p>
  
  <p>Clarification: I know how to get the vars from the URL in php.  What I need is to control the URL that will be opened when the user presses SUBMIT, and the URL needs to contain the user's search word!  Just like Google or DuckDuckGo, I put "apples" and the URL becomes ...?q=apples.  But - how?!  (Then I'll pick that up in the search.php, of course, but I know how to do that.)  This is what I have now:</p>
  
  <pre><code>&lt;div id="topnav"&gt;
  &lt;form action="search.php" method="post"&gt;
  &lt;input name="searchword" type="text"&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Thank you so much.</p>