• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validating forms

#2
[eluser]CroNiX[/eluser]
Not sure why that wouldn't work as validation_errors() is located in the form_helper code, which you are loading, but you can try replacing
Code:
$data['formResponse'] = "Form validation failed!";
with
Code:
$data['formResponse'] = validation_errors();
and in your view see if $formResponse has any data and display it if it does. It will be an empty string if there are no errors.


Messages In This Thread
Validating forms - by El Forum - 04-25-2012, 11:04 AM
Validating forms - by El Forum - 04-25-2012, 11:49 AM
Validating forms - by El Forum - 04-25-2012, 12:12 PM
Validating forms - by El Forum - 04-25-2012, 12:16 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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