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

(This post was last modified: 11-20-2017, 08:18 AM by PaulD.)

(11-20-2017, 08:02 AM)rolly Wrote: I made this for less request for mysql (check password). If you typing small password I can't request to database for in vain.
Then min_length would work here surely? Assuming you are not doing your business logic in your form validation. After all 'dsgsdgdsg' is a valid format for a password, even though it might not be the correct password.

(11-20-2017, 08:02 AM)rolly Wrote: I still have problem.
I want get callback with other validations, or this impossible?
Callbacks are fine. You can use as many as you wish. The only point I was making was that I believe the callbacks are run first, hence answering your original question.

Personally, I do not do things like 'is this the correct password' in form validation, only that a password of the right format has been submitted. Other things I see not as form validation issues, but business logic issues.

Anyway, I hope that helps,

Paul
Reply


Messages In This Thread
Validation callback - by rolly - 11-19-2017, 05:22 AM
RE: Validation callback - by PaulD - 11-19-2017, 07:08 AM
RE: Validation callback - by rolly - 11-20-2017, 08:02 AM
RE: Validation callback - by InsiteFX - 11-20-2017, 05:45 AM
RE: Validation callback - by rolly - 11-20-2017, 07:57 AM
RE: Validation callback - by PaulD - 11-20-2017, 08:17 AM
RE: Validation callback - by rolly - 11-21-2017, 01:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB