Results 1 to 4 of 4

Thread: PHP Include.. again so it sems

  1. #1
    Join Date
    Nov 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Include.. again so it sems

    Hi iv just joined these forums today, iv set up a site with PHP Includes i think i t would be easier to give the URL to the site www.dejserve.com/atlan , that site uses,

    HTML Code:
    <IMG SRC="images/index_04.gif" ALT="" width="190" height="647"><div style="position: absolute; top: 293; left: 118; width: 168; height: 556">
    
    <?php include('links.htm'); ?>
    		</div></TD>
    I want to make the links on that page change the Include path for the main page,

    HTML Code:
    <TD>
    			<IMG SRC="images/index_05.gif" ALT="" width="610" height="647"><div style="position: absolute; top: 285; left: 303; width: 580; height: 556">
    <?php include('home.htm'); ?>
    		</div></TD>
    i was wondering if someone could help me do this.

    Thanks, Dejavu

  2. #2
    Join Date
    Aug 2005
    Posts
    174
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    take a look at this thread.

  3. #3
    Join Date
    Nov 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    im not using iframes

  4. #4
    Join Date
    Nov 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    $pages = array('home', 'etc');

    if (isset($_REQUEST['p']) && in_array($_REQUEST['p'], $pages))
    {
    $include = $_REQUEST['p'];
    } else {
    $include = 'home';
    }

    include(''. $include .'.htm');

    sorted, this worked, so long as index.php?p=whatever page

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
  •