Results 1 to 2 of 2

Thread: CSS versus Frames

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS versus Frames

    I'm setting up a website for my boss that will have at least 4 pages. On each of the pages I'm going to have a box that displays links to an event in the future. This box will appear on each of the pages and display the exact same content. The trouble is that my boss, who is very CSS and HTML illiterate, is the one who will be updating this section.

    I would normally set this up as a div on each of the pages but I don't want my boss to have to update each one of the pages every time he adds a new link. If I use a frames layout, he will only have to update the one frame. However I was taught that frames are antiquated and CSS can do everything frames can do. Is there a CSS solution to my problem?

  2. #2
    Join Date
    Oct 2007
    Location
    Germany, Berlin
    Posts
    41
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default use php!

    If you have PHP on the web server you could include the newest event(s) like a template like this:
    Code:
    <?php include("folder/events.html") ?>
    .
    If you write this your boss has to change only one page for the events: the "events.html"!
    If your boss only needs to write text then you can simply include it like this!
    Code:
    <?php
       echo '<h5>upcoming event:</h5>';
       $tmpstring = include("folder/events.txt");
       echo htmlentities($tmpstring);
    ?>
    good luck
    Max

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •