php 面包屑导航如何写啊

WBOY
Release: 2016-06-13 10:18:31
Original
935 people have browsed it

php 面包屑导航怎么写啊?
我的导航时包含在头部文件里的(top.php),然后每个页面都是以include “top.php”的方式引入的。但当我今天想做面包屑导航时发现问题来了,弄不好了,我尝试过用form的形式来发送,然后top.php接收,但那种形式必须要有submit才行,但貌似submit在页面上又不能隐藏,所以不行啦。求解,这个到底该怎么传去啊?

------解决方案--------------------
只需通过对 url 或是说对 path_info 的分析就可以了
------解决方案--------------------
通过url解析,$_SERVER['REQUEST_URL'];和parse_url()函数

Related labels:
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