Site Layout
A Dynamic Web Template is an HTML-based master copy of a web page you create that can be easily modified in sections by inserting contents of an include file in a PHP script. These templates are usually divided into sections such as header, button navigation, dynamic content different for each page, and a footer. Each page is statically built by the browser while the dynamic content can be displayed using a URL token to a PHP script while the content and layout of the static sections stays the same. Using text hyper-links and buttons your browser uses the values that specify which dynamic content to append to the filename using a question mark with name and value pairs separated by ampersands (&) and the name and value in each pair separated by an equals sign (=). Each page will display different content depending on the hyperlink chosen and what is appended to the hyperlink chosen by the user.
For example, you may need to edit a phone number that appears in your header and footer, and you can make those changes on each of those include files that will reflect the changes on every webpage that is associated with your website without touching your navigation or content includes. When you attach a Dynamic Web Template to the pages in a website, that template defines the layout for those pages.
The following is an example of the syntax used for include files in a PHP script for the header and footer:
<?php
include("include/inc_header.php");
?>
<?php
include("include/inc_footer.php");
?>
The following is an example of the syntax used for each of the <a> tags to differentiate between dynamic and static content:
<a href="index.php?page=php_info">PHP</a>
<a href="index.php?page=home_page§ion=zodiac">Chinese Zodiac</a>