NotEmpty Validation with condition

bea

Active Member
Hi,
How can I prevent a user from bypassing a validation by pressing the space bar or entering a dot or a '0'?
It's notempty validation with condition.
Thank you
 
I have used something like this with php validation to force the users to enter at least 5 characters:
return strlen($data) < 5;

But very seldom can you solve the "bad behaviour" of users with a help of validation. They will always find a way around it like in this case entering just some random 5-char string :)

My long experience shows that educating the users is the only way.
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top