Use PHP to set up web navigation_PHP tutorial

WBOY
Release: 2016-07-13 16:58:30
Original
1225 people have browsed it

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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!