Results 1 to 4 of 4

Thread: Php Menu - Help Required

  1. #1
    Join Date
    Apr 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Php Menu - Help Required

    Hi,
    I am a newbie to these forums.

    I am doing a slight redesign of a website and this involves a change of menu.
    I am going from a ssi menu to a menu which seems to mean i have to change my page extensions from .shtml to .php

    As most of you will probably know, it is quite easy (when you know!) to arrange for a ssi menu to come up automatically on each website page.

    The question is, how do i do this for a .php website?

    To see what menu i am currently using, please see www.rhylfc.co.uk
    To see what menu i am going to use, please see http://www.rhylfc.co.uk/new_site_test/index2.php

    Please try to make it as simple to understand for me - i am completely new to php and i have tried and tested various ways myself but i am yet to crack how to solve my problem.

  2. #2
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    <?php include("path/file.php"); ?>
    That includes and excecutes the content in the current php file.
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

  3. #3
    Join Date
    Apr 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you.

    I must apologise as i have just realised that i have made a cock up!

    I got confused between the menu and the polls which will be on my site.

    The polls require me to save the homepage as php.

    The menu has nothing to do with php.
    The menu i will be using is
    http://www.dynamicdrive.com/dynamici...switchmenu.htm

    so my question is actually how do i get that menu to appear on each page as if it were ssi?
    the menu can and probably will change slightly throughout the next football season so obviously i don't want to have to change it on every page.

    Please feel free to move this thread to the correct place if needed.

  4. #4
    Join Date
    Apr 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I just want to say that I am a little closer to what i want to do know.

    I still have a small problem with what will be my new home page, but i will open up a new thread for that.

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
  •