php - How to keeping header footer and changing main content?
Get the solution ↓↓↓Solution:
Just include the header, footer files on every page and change the content file
Page1
<php
include 'HTMLS/header.html';
include 'page1.php';
include 'HTMLS/fotter.html';
?>
Page2
<php
include 'HTMLS/header.html';
include 'page2.php';
include 'HTMLS/fotter.html';
?>
...etc.
Answer
Solution:
If you don't want to re-load the page you will have to accomplish this outside of your PHP code, e.g. by using Ajax requests.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: a non-numeric value encountered
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.