PHP file how to get HTML JS data to solve the idea

Source: Internet
Author: User
How PHP files get HTML JS data
How the php file gets the HTML data, not the action.
To make long-term inquiries, such as hospitals and departments
It means there is a php file, a.php, there are two HTML files, hospital files: b.html and Department Files: c.html file. The action of the C file is submitted to the a.html file. But how a file to get the data of B file, this data exists in JS, passed to a file via JS
------Solution--------------------
You can put b.html content in the c.html and submit it in the past.
------Solution--------------------
I don't know what you mean, but a is going to write an Ajax method with the B-Exchange data.
------Solution--------------------
You this involves 3 pages, c.html submitted to b.html, then b.html how to operate it? Is it also a form submission? How does it relate to the a.php?
------Solution--------------------
Get b.html content in a.php

$b _html = file_get_contents (' b.html ');//This is the content of b.html
  • 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.