Answer the question
In order to leave comments, you need to log in
Is it possible to send a post or get request to a file with a class and pass the data to a specific method in that class?
The feedback form data is transmitted through an ajax request to a specific php script. I need to add a database connection to this script and some data processing with entering into this database. That is, the functions of this script are becoming more and more and I would not like to duplicate the php code that already exists in the OOP form. I would also like to break this whole thing into classes and methods and shove it into MVC folders, but I can’t figure out how to send an Ajax request not just to a php file, but to a specific method in this file.
In general, is this somehow provided for in php?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question