The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display Validation errors next to each field
My PHP just isn't good enough to get it, I guess. I changed a rule to reflect the colon:

'required, email, email: An email field is mandatory'.

Then I added the following to the end of the list of rules:

$raw_errors = validate_fields($_POST, $rules);
$error_hash = process_raw_errors($raw_errors);

I don't, however, understand adding a generic function to find and output a particular error message. I added the bit of code from your example, but it's obviously an undefined function, so it returned an error. It makes sense, but I don't understand PHP enough to know how to create the function (or define it).
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]

Messages In This Thread
RE: Display Validation errors next to each field - by michatmaster7 - Nov 1st, 2011, 10:48 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)