protoss1210 Posted July 10, 2009 Share Posted July 10, 2009 How can this be done easily without cutting/copying the same code over and over? Can CSS help with this?Thanks! Link to comment Share on other sites More sharing options...
dsonesuk Posted July 10, 2009 Share Posted July 10, 2009 css NO dynamic pages, such as php, asp, asp.net etc also javascript(iffy) or use iframe(some say bad, your choice) YESphp exampleshowmenu.php<?phpfunction showthismenu(){print <<<ENDenter html menu content hereEND;}?>anypage.phpput reference to showmenu.php in <head><head><?php include("showmenu.php"); ?></head>then position the function reference where you want menu to appear within the body<?php showthismenu() ?>you just require the these two lines. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.