PHP static page handling of dynamic content

Source: Internet
Author: User
When I come across a title, all messages in the message system are inherently static, but I want to display dynamic content such as the number of visits on the static page. I have no good solution. Today, I suddenly thought, can I solve it through the Framework page?

When I come across a title, all messages in the message system are inherently static, but I want to display dynamic content such as the number of visits on the static page. I have no good solution. Today, I suddenly thought, can I solve it through the Framework page?

The basic ideas are as follows:
First, open a static page similar to 20050120.html, which displays messages and other content, and also contains the number of visits, such as the following content:

Origin: unknown announcement time: Visits: 21

Then I will include the above content in a PHP program, and then use iframe in the static page to call this page.
But now we have a new title. how can I submit the static page address and corresponding variables to this framework page for processing?
I asked experts to apply JS for processing:
For example, if the framework page id is iframe, on the large page onload = 'document. getElementById ('iframe'). form1.hidId = '000000''
So how can I get this hidId = '000000'? I also need to apply js. my idea is to use js to get the URL of this page and then extract it using a regular expression, for example, if my static page is named 20050120.html, I extract 20050120 and then pass the value to hidID. then, I pass the value to the Framework page, the corresponding PHP program can be processed and the corresponding results can be printed.

I have not implemented this method in detail, but I have some basic ideas.

Are you sure you have other methods, such as xmlhttp, but the current knowledge is limited and cannot be implemented? if you have a master who has a better solution, please leave it blank!

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.