Home  >  Article  >  Backend Development  >  Use PHP to set up web navigation_PHP tutorial

Use PHP to set up web navigation_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 16:58:301226browse

Description:

The principle of implementation is that the web page contains a specific page. In order to achieve navigation, you must add '?id=pagename' to display in your web page.

The code is as follows:

if($id=="home"){
include("yourhomepage.html");
}
elseif($id=="page"){
include("yourpage.html");
}
//If your browser does not connect to the specified page, or an error occurs in the connection page, the following page will be displayed.
else{
include("yourpage.html");
}
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631411.htmlTechArticleExplanation: The principle of implementation is that the web page contains a specific page. In order to achieve navigation, you must add Use '?id=pagename' to display. The code is as follows: ? if($id==home){ include(y...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn