No new rules. You don't have to use PHP code on .php pages. The could be entirely HTML/CSS/javascript just like .htm(l) pages are.
all you do is construct your page in little bits and let the server put it all together.
so you have a bunch of common pages;
/include/dtd.php Just the doctype in this page
/include/htmltop.php Just has <html> and <head>
/include/charset.php Just the character set
... other common elements
/include/styles.php stylesheet definition
/include/closehead.php (</head> & <body>)
/include/navigation.php
/include/footer.php (close the boby and html tags as well)
then your page looks like
PHP Code:
<?
include("/include/dtd.php")
include("/include/htmltop.php")
?>
<title>Title bit</title>
<?
include("/include/charset.php")
include("/include/styles.php")
include("/include/closehead.php")
include"(/include/navigation.php")
?>
The content for the body goes here
<?
include("/include/footer.php")
?>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|