A PHP class, $tool = new tool ();
One page index.html
which uses Ajax to transfer data to the PHP class of the Find method
How do I write a path?
Can Ajax be used like this?
Reply to discussion (solution)
Where your PHP page will be uploaded.
Where your PHP page will be uploaded.
-----------------------------------------------------------------
I need to pass to the method in the class, how to write this path, the path of the php file I know for sure, or how the method in the class accepts the data that the AJAX transmits
All requests (including Ajax, of course) can only go to the page
The page completes the corresponding action according to the parameters passed in.
All requests (including Ajax, of course) can only go to the page
The page completes the corresponding action according to the parameters passed in.
Then you can only call the method in the initial method, return the data?
$o = new Class;
$o->finf ();
Is that all you can do?
Ajax is the same way that links and form submissions are handled