Hyperlinks within Table

Discussion in 'HTML & Website Design' started by RicknRoll, May 26, 2006.

  1. #1
    Hi there,

    I'm designing a new site, and I'm only used to HTML and stuff, but I would like to do the following, and I was told it can be done using PHP:

    I have a frameless website filled with one table. In the upper cell I have a picturemap, and for these hyperlinks I'd like the target to be the lower cell.
    I'm using dreamweaver MX, but I heve no idea how to do this; can someone explain it to me? (or at least point me in the right direction :p)

    Thanks a lot
    Rick
     
    RicknRoll, May 26, 2006 IP
  2. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #2
    From what I understand from your question, it seems that you are doing something similar to those kinds of FAQ page stuff (where you will be directed to a lower part of the page when one clicks a question). If this is the case, then you do not need any PHP codes..

    Please correct me if i interpret your question wrongly :p
     
    KC TAN, May 27, 2006 IP
  3. Bartbos

    Bartbos Peon

    Messages:
    29
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This is not a PHP question. Make sure you name your frames for example "top" and "content" and then just add target="content" to the link.
     
    Bartbos, May 27, 2006 IP
  4. RicknRoll

    RicknRoll Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To KCgame: You interpreted my question wrong indeed :p : I don't want to stay on the same HTML page, so usinga anchors isn't an option. What I'd like to do is to make a navigation bar in the uppercell of my table, and I'd like the content (a different .html/.php file) to be shown in the lower cell.
    To Bartbos: I'm sorry if I'm in the wrong section, I guess this is a PHP-related question (although webdesign). And about your suggestion: that's exactly what I'd like to do, but as said: I want a frameless side and as far as I know I can't name a (table)cell: top or content... :s Wish it were that easy. :p
     
    RicknRoll, May 27, 2006 IP
  5. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #5
    ok.. I will give it a go again this time :rolleyes:

    Since you want a frameless page, what you can do is to attach a variable to the URL. Every different links will have different variables like:

    
    //your navigation bar stuff
    echo'<a href="example.com?p=1">Home</a>';
    echo'<a href="example.com?p=2">News</a>';
    //...
    
    PHP:
    Now, check the variable in the lower cell like:
    
    if ($_GET['p']==1){
    //grab and display home related stuff
    }
    elseif ($_GET['p']==2) //grab the latest news from other pages
    //...
    
    PHP:
    Hope it helps this time :)
     
    KC TAN, May 27, 2006 IP