Form Validation validating blank values with min_length and valid_email rules |
Hahah, thank you!
For an API it can makes sense, I think. Yes, only will have rules for existing database fields. Extra fields sent by a client is removed with unset. The validation will be dynamically according to the input request. All the allowed db table fields will be validated. This is not just for a HTML form, but to general insert/update requests. For example: Having a table with 12 fields. When the client need to update the 'city' field he will not need to send all the 12 fields, but only a simple city field. And the validation must works on this field. Of course, an authentication will be run before this. Perhaps this is a really bizzare thing. Or I just not had explained more. It's that my issue is with the Form Validation that accepts blank values. I believe that something could be done about it. Thank you, Mr. Narf. |
Welcome Guest, Not a member yet? Register Sign In |