title: Make form remember earlier submitted values with CodeIgniter
body: <p>I have this contact form with codeigniter, and what I want to do is, when the form is submitted but does not pass validation, I want the fields to contain earlier submitted values.</p>
  
  <p>There's one thing though: when the form is loaded all the fields already have a certain value assigned, so for example the "name field" shows "name" inside the field. And I want this to stay that way, unless "name" is changed and the form is submitted, in that case it should have the new value.</p>
  
  <p>So for the moment I have this:</p>
  
  <pre><code>&lt;?php echo form_input('name', 'Name*');?&gt;
  
  &lt;?php echo form_input('email', 'Email*');?&gt;
  </code></pre>
  
  <p>But I don't know how to make the form remember any new submitted values.</p>
  
  <p>Anyone any idea?</p>