Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB