Welcome Guest, Not a member yet? Register   Sign In
Generic message for form validation
#5

[eluser]Chillahan[/eluser]
I just set a hidden input, and then inside the code that runs after:

Code:
if($this->validation->run() == FALSE)
{

I just add an if statement checking the POST class to see if my hidden input is set, and if not, clear the error you wish to display at the top (else, set it, since you know page has been viewed at least once AND validation has failed).


Messages In This Thread
Generic message for form validation - by El Forum - 07-12-2008, 06:41 AM
Generic message for form validation - by El Forum - 07-12-2008, 06:49 AM
Generic message for form validation - by El Forum - 07-12-2008, 06:49 AM
Generic message for form validation - by El Forum - 07-12-2008, 07:01 AM
Generic message for form validation - by El Forum - 07-15-2008, 06:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB