title: HTML form to GET two variables from a PHP page
body: <p>I've been working for several hours trying to get this to work properly. The page I have a form on is <code>/index.php?action=pagename</code>. I have a form that needs to get a variable from the following <code>/index.php?action=pagename&amp;thing=something</code>. My HTML form going like this:</p>
  
  <pre><code>    &lt;form role="form" action="pagename" method="get"&gt;
             &lt;input type="text" name="thing"&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>This form is located on <code>/index.php?action=pagename</code> and I want to get <code>&amp;thing</code> from that URL.
  Any ideas?</p>
  
  <p>The problem I'm having is that when the form is submitted, the URL redirects to <code>index.php?thing</code> instead of staying on <code>index.php?action=pagename</code>.</p>