I am making website and this website will have more than 20pages. I am using my template to add a webpage. This template has header and footer, so I just add the body of new page. But, what if I want to change navigation bar in the header, then I have to change all 20 pages that I already made to correct. I want to know better way. I read a book, and it says about "php include" function. Should I use this function in the header and footer of each webpage to call header and footer file? If I want to change the navigation bar in the header, all I can do is changing only one header file, then rest of website will be changed.
Is this correct way? In this case, what do you do? I am a beginner, so please advise me. Thank you in advance.