Welcome Guest, Not a member yet? Register   Sign In
Validation
#1

[eluser]schnoodles[/eluser]
Hello i am currently building a usersystem and i am up to the part where you check to see if the username and password is correct. i was wondering if there is a proper way to throw errors for functions to make them look like it was a validation error.

So i could do like

Code:
if ( $validation->run() == true ) {
if ( !$user->exists ) { //do like a validation error }
else {

}
}

Anyone know what the best way to accomplish what i am trying to do is ?


Messages In This Thread
Validation - by El Forum - 10-22-2007, 03:49 AM
Validation - by El Forum - 10-22-2007, 05:17 AM
Validation - by El Forum - 10-22-2007, 07:02 AM
Validation - by El Forum - 10-22-2007, 03:02 PM
Validation - by El Forum - 10-22-2007, 03:40 PM
Validation - by El Forum - 10-22-2007, 05:27 PM
Validation - by El Forum - 10-22-2007, 06:15 PM
Validation - by El Forum - 10-22-2007, 07:16 PM
Validation - by El Forum - 10-23-2007, 07:11 AM
Validation - by El Forum - 10-23-2007, 05:47 PM
Validation - by El Forum - 10-24-2007, 12:47 AM
Validation - by El Forum - 10-24-2007, 01:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB