title: how to remember input data in the forms even after refresh page?
body: <p>what to do in order to make the form remember the previous input or the current input of the user even after he/she refreshed the page ?</p>
  
  <p>should I do ,</p>
  
  <pre><code>            &lt;div class="row"&gt;
               &lt;label&gt;Contact Messenger &lt;/label&gt;
               &lt;input type="text" name="messenger" id="messenger" size="50" maxlength="50" value="&lt;?php echo $_SESSION['messenger']; ?&gt;"/&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>or </p>
  
  <pre><code>            &lt;div class="row"&gt;
               &lt;label&gt;Contact Messenger &lt;/label&gt;
               &lt;input type="text" name="messenger" id="messenger" size="50" maxlength="50" value="&lt;?php echo $_POST['messenger']; ?&gt;"/&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>or</p>
  
  <p>there's a trick to do it ?..how ?</p>