Need help converting HTML to PHP
Posted 06 April 2006 - 03:41 AM
At www.puggo.com you can see my website. The goal is to keep everything in union except for the text in the middle of the page which will change when you click on any of the links. Also the menu on the lefthand side needs submenus. The problem I face is that I want to have a "Recent Articles" section and it just seems difficult to figure out how to keep a template for every page. It seems if I make any change I have to change all the pages which is a lot of work. Anyone got any solutions even if it isn't php?
Thanks for your help in advance!
-Derek, the confused one
Posted 06 April 2006 - 09:43 PM
Posted 07 April 2006 - 06:44 PM
<?php /// Header.php ?> <html><head>Head specific content here</head> <title>Page Title</title> <body><table 1>Banner upper barlinks etc</table> <table 2>Left side nav bar</table> <?php /// whatever page index for arguement sake. // index.php include "header.php"; // includes your upper logo, and left hand navmenu ?> <table>Main site content</table> <?php include "footer.php"; // includes right hand nav menu and lower site info ?> <?php // footer.php ?> <table 3>Right hand menu</table> <table 4>bottom site specs/author shouts whatever</table> </body></html>
From creating a header.php and footer.php you can simply include those two at the start and end of your script and keep all pages uniform. I know the explanation was haphazard, but I hope I gave you some inspiration.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users