How does Ajax write the path from the value to the PHP class?

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.