title: Unable to echo PHP coded cookie value?
body: <p>I have the following code that builds a cookie:</p>
  
  <pre><code>$username = $_COOKIE['ID_my_site'];
      $pass = $_COOKIE['Key_my_site'];
      $firstName = $_COOKIE['firstName'];
      $lastName = $_COOKIE['lastName'];
      $active = $_COOKIE['active'];
      $email = $_COOKIE['emailAddress'];
  </code></pre>
  
  <p>then when using:</p>
  
  <pre><code>echo "&lt;b&gt;Username:&lt;/b&gt; &lt;? " . $username . "?&gt;";
          echo "&lt;a href=logout.php&gt;Logout&lt;/a&gt;";
  </code></pre>
  
  <p>The value is not printed as expected.</p>
  
  <p>Can the community explain why and provide me with the correct method for echoing the value to the relevant output device?</p>