I have this contact form with codeigniter, and what I want to do when the form is submitted but does not pass the verification, I want the fields to contain the previously submitted values.
There is one thing: when the form loads, all the fields already have a certain value, therefore, for example, the "name field" shows the "name" inside the field. And I want this to remain so if the "name" is not changed and the form is not submitted, in which case it should have a new meaning.
So, at the moment I have this:
<?php echo form_input('name', 'Name*');?>
<?php echo form_input('email', 'Email*');?>
But I don’t know how to create a form to remember any new values presented.
Any idea?