Welcome Guest, Not a member yet? Register   Sign In
Use validation without saving the form data to the database
#1

Is it possible to use validation without necessarily having to save the data in the database, but only check if the data sent meets the rules?

I need to check that the form contains data according to certain rules, but I don't have to save it, but return it to javascript to append an element, only if I pass the validation

How can I perform the validation without performing an insert or an update?
Reply
#2

The Validation class is a stand alone library. You can use it without database.
See https://codeigniter4.github.io/CodeIgnit...ation.html
Reply
#3

(10-28-2022, 05:18 PM)kenjis Wrote: The Validation class is a stand alone library. You can use it without database.
See https://codeigniter4.github.io/CodeIgnit...ation.html

Thanks, I was immersed in In-Model Validation and had the thing removed
Reply




Theme © iAndrew 2016 - Forum software by © MyBB