title: Save image as session and display it
body: <p>I'm trying to save a file/image as session and then display it.. </p>
  
  <p>here's the first page which contains the form: </p>
  
  <pre><code>  &lt;form method="post"&gt;
     &lt;input type="file" name="picture" value="upload" id="file" accept="image/*" onsubmit="return validateForm()"&gt;
             &lt;/form&gt; 
  </code></pre>
  
  <p>Ok, so on then next I save the image as session and try to show it (which is unsuccessful)...</p>
  
  <p>Code: </p>
  
  <pre><code>        &lt;?php 
        if (isset( $_POST['picture'])) 
  
          $_SESSION['picture'] = $_POST['picture'];
  
          echo  "&lt;img src=" $_SESSION['picture'] " border='0' /&gt; " 
            ?&gt;
  </code></pre>