title: How i can display another image or text in another <aside> without clearing out the screen with the first uploaded picture?
body: <p>I am having trouble with some PHP. I want to upload a picture, display it and after clicking &quot;process&quot;, display something on the other side of the page. For example code, i just want to display &quot;hello&quot;. When i try to do it, it clears the uploaded image.
  Any pointer into right direction?</p>
  <p>Much appreciated.</p>
  <p>Code:</p>
  <pre><code>&lt;!DOCTYPE html
  &lt;html&gt;
  &lt;head&gt;
      &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/style.css&quot;/&gt;
  &lt;/head&gt;
  
  
  &lt;body&gt;
    
  &lt;div class=&quot;row&quot;&gt;
  &lt;aside id=&quot;left&quot;&gt;
      &lt;form action=&quot;&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
      Select image to upload:
      &lt;input type=&quot;file&quot; name=&quot;file_to_upload&quot; id=&quot;file_to_upload&quot;&gt;
      &lt;input type=&quot;submit&quot; name=&quot;submits&quot; id=&quot;upload_button&quot; value=&quot;upload&quot;&gt;
  &lt;/form&gt;
  
  &lt;div id=&quot;uploaded_pic&quot;&gt;
  &lt;?php
  
  if(isset($_POST['submits']))
  { 
  $filepath = &quot;images/upload&quot; . $_FILES[&quot;file_to_upload&quot;][&quot;name&quot;];
  
  if(move_uploaded_file($_FILES[&quot;file_to_upload&quot;][&quot;tmp_name&quot;], $filepath)) 
  {
  echo &quot;&lt;img src=&quot;.$filepath.&quot; height=640 width=480 /&gt;&quot;;
  } 
  else 
  {
  echo &quot;Problem uploading&quot;;
  }
  
  } 
    
  ?&gt;
  &lt;/div&gt;
  &lt;div id=&quot;process-button&quot;&gt;
      &lt;form action=&quot;&quot; method=&quot;POST&quot; name=&quot;processing&quot;&gt;
      &lt;input type=&quot;submit&quot; name=&quot;process_button&quot; id=&quot;process_button&quot; value=&quot;process&quot;&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;/aside&gt;
  
  &lt;aside id=&quot;right&quot;&gt;
  
  &lt;?php
      if (array_key_exists('process_button',$_POST))
      {
          echo &quot;hello&quot;;
      }
  ?&gt;
  &lt;/div&gt;
  &lt;/aside&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>