[eluser]razerone[/eluser]
Hi I have a small issue that I am stuck on. And can't seem to find out what or how to fix it.
Say for example I am typing a message in my contact form and click send but miss something and my validation comes up.
But for some reason the text that I have put in that is correct it goes away. And I have to retype it all in.
How do I make it so that the if the input areas are correct the text stays in there. until message sent successfully?
I have tried size="50" in all inputs but nothing. That is only thing I am stuck on. Then I will be finished my contact form.
Code:
<form acti echo base_url('contactus/confirmation');?>" accept-charset="utf-8" method="post" id="contactus-form" role="form">
<div class="form-group">
<label for="name">Full Name</label>
<input class="form-control" type="text" name="name" id="email">
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input class="form-control" type="text" name="email" id="email" />
</div>
<div class="form-group">
<label for="website">Website Address</label>
<input class="form-control" type="text" name="website" id="website" />
</div>
<div class="form-group">
<label for="message">Your Message</label>
<textarea class="form-control" type="text" rows="13" name="message" id="message"></textarea>
</div>
</form>