title: Including php variable in header()
body: <p>I'm still learning php and I still haven't figured out when to use ' or ". I'm guessing thats the problem with this code. It redirects me to the right page but the $loc variable isn't carried over. </p>
  
  <pre><code> &lt;?php header("Location: roomdata.php?loc=$loc"); ?&gt;
  </code></pre>
  
  <p>on the page that has the header() commaned I also have an include command...</p>
  
  <pre><code>&lt;?php  include 'include/globalscripts.php';  ?&gt;
  </code></pre>
  
  <p>and in the globalscripts.php is...</p>
  
  <pre><code>&lt;?php if( isset($_GET['loc']))?&gt;
  
  &lt;?php $loc = $_GET["loc"];?&gt;
  </code></pre>