Welcome Guest, Not a member yet? Register   Sign In
Validation library/Helper form
#2

[eluser]roj[/eluser]
Just thinking off the top of my head, but a quick function to see if the error exists and return the error class if it does might work?
Code:
function return_error_class($err_msg)
{
if ($err_msg != null)
{
return 'error';
}
else
{
return 'normal_class';
}
}

then just call it for each input you want to check?
not sure if that' what your looking, nor if it'll work....


Messages In This Thread
Validation library/Helper form - by El Forum - 10-20-2008, 02:30 PM
Validation library/Helper form - by El Forum - 10-20-2008, 03:32 PM
Validation library/Helper form - by El Forum - 10-20-2008, 03:40 PM
Validation library/Helper form - by El Forum - 10-20-2008, 04:47 PM
Validation library/Helper form - by El Forum - 10-20-2008, 04:51 PM
Validation library/Helper form - by El Forum - 10-20-2008, 04:57 PM
Validation library/Helper form - by El Forum - 10-21-2008, 02:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB