How does this 'template-like-thing' works?
Posted: Mon Oct 17, 2005 6:14 am
I see many php sites using either tables or divs in this style:
(The above is a crappy ASCII drawing of a common main page in php
)
When I click on a link, for example, called "My Profile" then the main div/table contents change but the left (ussually navigation bar) and the top (often containing a logo and some quick links) don't change at all. The page then reloads and it looks like a HTML page using frames... How do they do that (supposing they don't use pre-build packages) or how is that technique called so I can learn about it?
I suppose that they don't write the same 'navigation bar' and 'header' for every page. Do they store a template-like code in textfile/database and retrieve it uppon visiting a page and just change the main table/div code?
I hope you understand what I am trying to ask.
Code: Select all
---------
|-------|
| | |
| | |
| | |
--------When I click on a link, for example, called "My Profile" then the main div/table contents change but the left (ussually navigation bar) and the top (often containing a logo and some quick links) don't change at all. The page then reloads and it looks like a HTML page using frames... How do they do that (supposing they don't use pre-build packages) or how is that technique called so I can learn about it?
I suppose that they don't write the same 'navigation bar' and 'header' for every page. Do they store a template-like code in textfile/database and retrieve it uppon visiting a page and just change the main table/div code?
I hope you understand what I am trying to ask.