Welcome Guest, Not a member yet? Register   Sign In
Check if there are Validation Errors before calling validation_errors()?
#1

[eluser]warpspasm[/eluser]
Hi Everyone,

For my layout to work, I would need to be able to check if there are any validation errors that validation_errors() would display.

I vaguely remember that there is an array that holds the errors but I can't remember right now.

Does anybody know how I can check this?

Thanks
#2

[eluser]Eric Barnes[/eluser]
You should be able to do something like:
Code:
<?php if (function_exists('validation_errors') AND validation_errors() != ''): echo validation_errors(); ?>




Theme © iAndrew 2016 - Forum software by © MyBB