• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keep input value if form validation is wrong

#1
[eluser]Unknown[/eluser]
Hi there,

I'm new to CodeIgnitor.

I've starting with forms.

In PHP I would add the following to an input value:

Code:
<?php if($_POST['name']) {

echo $_POST['name'];

} ?>

That way if the form input has an error then it doesn't all disappear on form submission

Is there any similar I can use when using the form helper?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.