validation_errors([$prefix = ''[, $suffix = '']])
Parameters: |
|
---|---|
Returns: |
HTML-formatted form validation error message(s) |
Return type: |
string |
Similarly to the form_error()
function, returns all validation error messages produced by the Form Validation Library, with optional opening and closing tags around each of the messages.
Example:
echo validation_errors('<span class="error">', '</span>'); /* Would produce, e.g.: <span class="error">The "email" field doesn't contain a valid e-mail address!</span> <span class="error">The "password" field doesn't match the "repeat_password" field!</span> */
Please login to continue.