PHP头条
热点:

用PHP来设置网页导航


  

  说明:

  实现的原理是网页中包含一个特定的页,在你的网页中为了实现导航必须加上 '?id=pagename'来显示。

  代码如下:

if($id=="home"){
include("yourhomepage.html");
}
elseif($id=="page"){
include("yourpage.html");
}
//如果你的浏览器没有连接到指定的页面,或连接页面出现错误则显示下面的页面。
else{
include("yourpage.html");
}
?>

www.phpzy.comtrue/phpyy/10811.htmlTechArticle用PHP来设置网页导航 说明: 实现的原理是网页中包含一个特定的页,在你的网页中为了实现导航必须加上 '?id=pagename'来显示。 代码如下: if($id=="home"){ include("yourhomepage.html"); } elseif($...

相关文章

相关频道:

PHP之友评论

今天推荐