A place to relax and discuss.
HomePortalFAQSearchRegisterMemberlistUsergroupsLog in

Share | 

 PHP: Header/Footer

Go down 
New Otaku
New Otaku

Number of posts : 85
Registration date : 2007-04-21

PostSubject: PHP: Header/Footer   Sat May 05, 2007 6:04 pm

Ok so lets say you have a bunch of php files and you want your design on all of them but dont want to have all the html code in eatch.. Well its easy...

Make a file called.. header.php

In that put all the HTML above where the content goes on your site..

Then make a file called footer.php

In that file put everything under the content area..

Now, when you want to have a page with your design all you do is make a file.. ex, index.php

And put:

<? include 'header.php'; ?>
Blahblah your content here >.>
<? include 'footer.php'; ?>

And thats it!
Back to top Go down
View user profile
PHP: Header/Footer
Back to top 
Page 1 of 1
 Similar topics
» The header image keeps going invisible.
» Rounded header
» Removing HOME in Footer - phpbb3
» Click not working on header link for drop down in footer
» how can call this class "x-window-header x-window-header-noborder x-unselectable x-window-draggable" from webdriver

Permissions in this forum:You cannot reply to topics in this forum
Tong-Pak-Fu :: Graphics And Web Discussion :: Photoshop/Webdesign :: Tutorial :: Web Design Tutorials-
Jump to: