我想加载下一页与前一页有相同的导航和面板。

时间:2022-12-05 23:18:32

I want to load another page in same page with having all the function of current page. For example i have page which have "navigation bar" "panel" , now what i want is next page should get load but only content gets change.not the whole page .

我想在同一页面加载另一个页面,具有当前页面的所有功能。例如,我有一个页面,其中有“导航栏”“面板”,现在我想要的是下一页应该加载,但只有内容得到改变。不是整个页面。

1 个解决方案

#1


0  

you should devid you page as ... (1) Header , (2) Main sections , (3) Footer

你应该把你的页面视为......(1)标题,(2)主要部分,(3)页脚

and include them using php include file examble >>> include 'filename';

并使用php include文件将它们包括起来>>> include'filename';

check this out

看一下这个

So you have the same ( Header page ) and ( Footer page )

所以你有相同的(页眉页面)和(页脚页面)

But only the Content page is changing

但只有内容页面正在发生变化

<?php
include 'header.php';

//only change this for the other pages

include 'main.php';

include 'footer';
?>

#1


0  

you should devid you page as ... (1) Header , (2) Main sections , (3) Footer

你应该把你的页面视为......(1)标题,(2)主要部分,(3)页脚

and include them using php include file examble >>> include 'filename';

并使用php include文件将它们包括起来>>> include'filename';

check this out

看一下这个

So you have the same ( Header page ) and ( Footer page )

所以你有相同的(页眉页面)和(页脚页面)

But only the Content page is changing

但只有内容页面正在发生变化

<?php
include 'header.php';

//only change this for the other pages

include 'main.php';

include 'footer';
?>