title: $_GET not working after jQuery .load()
body: <p>I'm using jQuery .load() to reload a div that I ran a MySQL query in. Part of the query takes a value from a variable, which itself is set by a $_GET. When I .load() that div again, the $_GET loses value, as does any variable that was holding the $_GET value.</p>
  
  <p>My code was somewhat like this:</p>
  
  <pre><code>&lt;div id="foo"&gt;
  &lt;?php
       $var = $_GET['p'];
       //sql query
       echo $var;
       //echo sql query
   ?&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>With <code>#foo</code> being the div that is re-load()ed with jQuery.</p>
  
  <p>If I hardcode, for example, <code>$var = 7</code>, the page in question <i>will work</i>. So I know it's not a problem elsewhere.</p>
  
  <p>Any help?</p>