Web Hosting Talk







View Full Version : Displaying certain content on multiple pages


Brywright
10-24-2008, 04:07 PM
Displaying certain content on multiple pages

Hi, I am trying to do multi content display and not sure how I would go about it. Im assuming i need to do this in php as I do not think html/css will do this.
Basicall , a layout very simply of:
index.html
page1.html
When page1.html is changed I want a certain part of to show in index.html. At the moment i think I can get away with the first line of page1.html needing to be included in index.html.
Obviously I could get around it by having a common file like show.html being included in both page1 and index.html but, this would be rather clumsy way of doing it for my needs.

Ceetoe
10-24-2008, 04:36 PM
You're right that PHP can help you out. This is frequently used for sections like header/navigation/footer that would be consistent throughout. You would use what are known as php includes...to "include" parts on a page.
Here's a good tutorial:http://www.tizag.com/phpT/include.php






__________________BabbleLogic Software and Design LLC - Web Design and App Dev(C#, PHP, Python)






Last edited by Ceetoe : 10-24-2008 at 04:37 PM.
Reason: Added a tutorial link