title: Use $_SESSION variable as input value?
body: <p>I have this at the top of my page:</p>
  
  <pre><code>&lt;?php
      //start session
      session_start();
      print_r($_SESSION);
  ?&gt;
  </code></pre>
  
  <p>then the html below.</p>
  
  <p>It doesn't actually print out the $_SESSION array and I am assuming that is because the html is overriding it and that is ok.</p>
  
  <p>But I want to use show the $_SESSION['username'] as an input value in a form.</p>
  
  <pre><code>&lt;label for="obsName"&gt;Observer's Name:&lt;/label&gt;
  &lt;input type="text" name="ObsName" class="form-control" id="obsName" value="&lt;?php echo $_SESSION['username'];?&gt;"&gt;
  </code></pre>
  
  <p>I use this and what is being shown in the box is just that:</p>
  
  <pre><code>&lt;?php echo $_SESSION['username'];?&gt;
  </code></pre>
  
  <p>How can I fix this?</p>