Home > Article > Backend Development > search engine optimization Two ways to interact with PHP andjavascript
During the web page production process, how to maintain interaction between the front-end page and the
back-end CGI page without refreshing the page has always been a problem. Here are two methods I use in practice.
Method 1: Interaction through Cookies. There are three files in total, namely:
index.htm, action.php, main.htm
The principle is that the front-end page main.htm and the back-end action.php are organized through the page frame
index.htm, and the action.php page Set the width to 0, which does not affect the display. action.php puts information into cookies, and main.htm realizes interaction by reading
cookies. In main.htm, you can also control the background CGI program by re-reading action.php
.
index.htm
------------------------------------------------ ------------------
This page uses page frames, but your browser does not support it
以上就介绍了search engine optimization PHP与javascript的两种交互方式,包括了search engine optimization方面的内容,希望对PHP教程有兴趣的朋友有所帮助。