Welcome Guest, Not a member yet? Register   Sign In
Form Validation validating blank values with min_length and valid_email rules
#11

Hahah, thank you! Big Grin

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.
Reply


Messages In This Thread
RE: Form Validation validating blank values with min_length and valid_email rules - by natanfelles - 10-16-2017, 12:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB