Welcome Guest, Not a member yet? Register   Sign In
Form Validation, validation->error_string not displaying
#4

[eluser]JayTee[/eluser]
I don't know if it's a bug that was resolved, per se; the form validation has been re-done in 1.7.0. You may want to check it out.

On the other hand, I would suggest that you avoid checking for falsehood; it's not the best programming practice if you can avoid it. I usually do it this way:
Code:
if ($this->validation->run())
{
  //process form
}
else
{
  echo $this->validation->error_string;
}
You can see that it's just slightly different, but more readable.

Anyway, the reloaded form should have this in it:
Code:
<?PHP echo $this->validation->error_string ?>
at the top of the form. I don't know what your view looks like; but I'd start there.


Messages In This Thread
Form Validation, validation->error_string not displaying - by El Forum - 10-26-2008, 09:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB