title: Including form data in another page
body: <p>When I post my form data:</p>
  
  <pre><code>&lt;form action="layouts.php" method="post"&gt;
    &lt;input type="text" name="bgcolor"&gt;
    &lt;input type="submit" value="Submit" align="middle"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>to a php page, "layouts.php", it returns the string, as expected.:  </p>
  
  <pre><code>$bgcolor = $_POST['bgcolor'];
  echo $bgcolor; //returns "red"
  echo gettype($bgcolor); // returns "string"
  </code></pre>
  
  <p>But when I include "layouts.php" in another page it returns NULL.</p>
  
  <pre><code>&lt;?php
    include("php/layouts.php");
    echo $bgcolor; //
    echo gettype($bgcolor); //returns "NULL"
  ?&gt;
  </code></pre>
  
  <p>How do I pass the variable to another page?</p>