Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    Ok thanks

    All i get now is:
    Notice: Undefined index: page in C:\Program Files\EasyPHP 3.0\www\Site 1\index.php on line 15

    any idea?

    line 15 is:

    $page_name = $_GET["page"];

    drink up this bottle of yeah
    and P A I N T your body on me


  2. #12

    Default

    What is your directory structure, and is the file which contains the code named index.php?

  3. #13
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    yes. it's name index.php.

    the structure is

    public_html/index.php

    public_html/pages/page.php

    drink up this bottle of yeah
    and P A I N T your body on me


  4. #14
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    It's a notice, it's telling you that you didn't define $page first.

    At the top of your page put:

    PHP Code:
    error_reporting(E_ALL E_NOTICE); 
    Should do it.

  5. #15
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    Thanks all.

    Works fine now thanks caleb +Rep to all

    drink up this bottle of yeah
    and P A I N T your body on me


  6. #16
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    Ok. hit an error. it's not liking it when the link has been visited.

    when the link has been visited, the class seems to knock out.

    so it stays unactive even when on the page, once link has been visited.

    drink up this bottle of yeah
    and P A I N T your body on me


  7. #17
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    i believe the style for that is

    Code:
    a:visited {
        color: #000;
    }
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  8. #18
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    Quote Originally Posted by Flisker View Post
    i believe the style for that is

    Code:
    a:visited {
        color: #000;
    }
    yes, it is.

    but when the link has been visited, no matter what page you're on, none of them change class to "active" anymore.

    drink up this bottle of yeah
    and P A I N T your body on me


  9. #19
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    Quote Originally Posted by Myke View Post
    yes, it is.

    but when the link has been visited, no matter what page you're on, none of them change class to "active" anymore.
    No because they are already visited so just make the colour the same on both
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  10. #20
    Join Date
    May 2005
    Location
    united kingdom
    Posts
    8,084
    Tokens
    595

    Latest Awards:

    Default

    no chris, you're not understanding me.
    i've formatted the visited and non visited the same.
    that's not my problem.

    my problem is, once a link has been visited, and the person returns to the page, none of them turn active when they should be.

    drink up this bottle of yeah
    and P A I N T your body on me


Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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