Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Hey peeps,

  1. #1
    New Coder
    Join Date
    Nov 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hey peeps,

    I was just wondering if it would be possible to update a section of a number of pages with just html and css its mainly the navigation area that would be updated or would i need to use some php?

    If i need to use php (which i would have to learn lol) could i insert it into the current code without any problems do you think or would it be best to just redo the whole lot?

    If i had to do the whole lot again what would be the best was as i know notthing about php apart from its pretty powerful would it be some sort of template then calling from a fiel for the sections that i wanted updateing?

    Sorry for being a dumbass!

    The one and only Jackle

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,801
    Thanks
    8
    Thanked 131 Times in 129 Posts
    If your talking about having yourlinks where you might have to change them but want to only edit one file instead of every single page, then php is probally what you should use if your server allows it. You don't need to know any php to do it either. You will have to name all pages .php instead of html pages for it to work though.

    heres an include i have used before:

    Code:
    <div id="links">
    <?php
    include("navigation.html");
    ?> 
    </div>
    the "links" styling is in the css. the php include just grabs the links.html file and slides inplace. If a link would ever need changinging then I would only have to edit the one file.

    the html file:
    Code:
    <ul>
    <li><a href="index.php">Home</a></li>
    <li><a href="about.php">About Us</a></li>
    <li><a href="?.php">etc...</a></li>
    </ul>
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #3
    New Coder
    Join Date
    Nov 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ahh cool thanks for teh super fast reply dude and yea my uni supports it they support it all i think

    thanks again

  • #4
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    He called us peeps.


  •  

    Posting Permissions

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