Untitled Document

RATOXTIGERHAREDRAGONSNAKEHORSEGOATMONKEYROOSTERDOGPIG

Chinese Zodiac Feedback Banner Display
[Banner Ad]

Hover over the Fortune Fish to reveal your fortune.

Navigation


Site Layout

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>




A randomly displayed Chinese proverb read from a text file.
In bed be wife and husband, in the hall each other's honoured guest


6 Randomly displayed proverbs from a database:
5 A sharp tongue or pen can kill without a knife.*
The Chinese Zodiac | Site counter Chinese Zodiac Feedback

Total visitors to this site: 234257


Home Page Site Layout Control Structures String Functions Web Forms Midterm Assessment State Information User Templates Final Project