billybob013 Posted October 26, 2007 Share Posted October 26, 2007 How did I write php code that will allow me to have my title bar and navigation bar to remain static while having the body portion of my webpage be dynamic? Any help or tutorial links would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/74894-need-help-with-website-layout-newbie/ Share on other sites More sharing options...
PHP_PhREEEk Posted October 26, 2007 Share Posted October 26, 2007 Write separate header and footer scripts. On the 'body' page, simply include the header page, go on with your code and do whatever, then close it out by including the footer script. There are many examples of this all over PHP tutorial sites. PhREEEk Link to comment https://forums.phpfreaks.com/topic/74894-need-help-with-website-layout-newbie/#findComment-378646 Share on other sites More sharing options...
premiso Posted October 26, 2007 Share Posted October 26, 2007 header.php <html> <head> <title>Your Title</title> </head> <body> footer.php </body></html> index.php <?php include('header.php'); ?> test test <?php include('footer.php'); ?> Link to comment https://forums.phpfreaks.com/topic/74894-need-help-with-website-layout-newbie/#findComment-378648 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.