title: PHP keep form info after submit form failed
body: <p>Hello 
  I am building a form in a mvc system view, and i want that all the inserted values will be kept,in case of form submit failure.
  How can this be done: i tried like (example for a field):</p>
  
  <pre><code>     &lt;label for="user_firstname"&gt;Nume&lt;/label&gt;
      &lt;input id="user_firstname" type="text" name="user_firstname" value=&lt;?= $_POST['user_firstmane'] ?&gt; &gt;
      &lt;? if (isset($errors['user_firstname'])): ?&gt;
      &lt;span class="error"&gt;&lt;?= $errors['user_firstname']; ?&gt;&lt;/span&gt;
  &lt;? endif; ?&gt; 
  </code></pre>
  
  <p>but of course, it doesn't work the first time (when no post action is done).</p>
  
  <p>what is the simplest way to do this? any ideas?</p>
  
  <p>thank you</p>