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 Quote Link to comment 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> Quote Link to comment 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? Quote Link to comment 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"); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.