Gazan Posted February 13, 2009 Share Posted February 13, 2009 Lately i've been wondering how do you insert a html header into a site? Like, would you store the html code for the header into a function and then call it on your php page? Another question, when you do html div's? do you store them into arrays and display them via variables? Some thing i'm very curious about.. If my question is not understandable, please reply so.. Thanks in advance Link to comment https://forums.phpfreaks.com/topic/145097-inserting-header-and-div-tags-using-php/ Share on other sites More sharing options...
aebstract Posted February 13, 2009 Share Posted February 13, 2009 Neither of those questions involve php nor have anything to do with php. header: <head> code here </head> div: <div> information here </div> Link to comment https://forums.phpfreaks.com/topic/145097-inserting-header-and-div-tags-using-php/#findComment-761461 Share on other sites More sharing options...
Gazan Posted February 13, 2009 Author Share Posted February 13, 2009 Yeah i get that.. But how would you insert it into php? would you store it into a function to display in every page? Link to comment https://forums.phpfreaks.com/topic/145097-inserting-header-and-div-tags-using-php/#findComment-761469 Share on other sites More sharing options...
aebstract Posted February 13, 2009 Share Posted February 13, 2009 Make a php file with your header information in it, then just do <?php include("header.php"); ?> Link to comment https://forums.phpfreaks.com/topic/145097-inserting-header-and-div-tags-using-php/#findComment-761497 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.