php and <div> tag

Sharky Forums


Results 1 to 2 of 2

Thread: php and <div> tag

  1. #1
    Expensive Sushi
    Join Date
    Dec 2003
    Posts
    17

    php and <div> tag

    Hi.
    I am making a site that has two columns using <div> tag, the one to the left is going to be the menu, and the other the main window.

    I'm using the php 'include' command to load a menu.php on the left <div>, and a welcome page in the main <div>.

    The object is now to get links from the menu to show in the main window.

    From menu.php:
    Code:
    <a href="http://www.google.com" target="main">Google</a>
    This should load google in the <div> main, but nothing happens.

    How do I get the main <div> to include whatever gets called from a link from the menu?

    [edit]rephrase: I'm trying to send a link from menu.php to the <div class="main"> which is defined in index.php[/edit]
    Last edited by schkeb; 09-29-2004 at 02:04 PM.

  2. #2
    Tiger Shark
    Join Date
    Oct 2000
    Location
    Erie, PA, USA
    Posts
    693
    I'm rusty on my HTML but I think you need a pound sign to target an area in the same html document.

    so
    Code:
    <a href="http://www.google.com" target="#main">Google</a>
    might work.
    AMD AthlonXP 2600+ Thoroughbred B @ 200x10.5
    Shuttle AN35N nForce2 Ultra 400
    2x512MB Kingston PC3200 (3-3-3)
    ATI Radeon 9600 Pro
    40GB WD ATA-100 8MB cache
    Creative 12X DVD Drive
    Memorex 52X CD-RW
    Running Windows XP Pro

Posting Permissions

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