Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2012
    Location
    UK
    Posts
    660
    Tokens
    0
    Habbo
    alexhenry

    Latest Awards:

    Default Help with pages on website?

    Hi there everyone.

    Basically I have a website - http://alexelliott.org.uk. Now, the problem is:

    I want to include http://alexelliott.org.uk/New/gallery onto a page on the main website so it appears like the other pages - (about, contact)

    I tried doing the coding like the rest but because it's such huge data and in a separate folder, how do I code it?



    Thanks in adcance!

    moderator alert thread moved here by Bolt660 (Forum Super Moderator): From 'Technology Discussion', as its more suited here.
    Last edited by Martin; 18-07-2012 at 06:53 PM.

  2. #2
    Join Date
    Jan 2008
    Location
    Wales
    Posts
    3,594
    Tokens
    1,387
    Habbo
    Skizzling

    Latest Awards:

    Default

    Style it using the classes from your main website stylesheet with a wrapper with the width of the content area where you wish to put it and then include it onto the page using the following:

    Code:
    <?php
    
    include( "/New/gallery/index.php" );
    
    ?>
    If that's what you mean?

  3. #3
    Join Date
    Mar 2012
    Location
    UK
    Posts
    660
    Tokens
    0
    Habbo
    alexhenry

    Latest Awards:

    Default

    Quote Originally Posted by Calvin View Post
    Style it using the classes from your main website stylesheet with a wrapper with the width of the content area where you wish to put it and then include it onto the page using the following:

    Code:
    <?php
    
    include( "/New/gallery/index.php" );
    
    
    If that's what you mean?
    Code:
    
    Here is all of my other coding for the pages - 
    
    <li class="currentPage"><a href="index-2.html">home</a></li>
    ?>
    How do I put that coding in, doesn't work and also make it so a page name appears saying gallery like the home?

    ---------- Post added 19-07-2012 at 11:57 AM ----------

    Quote Originally Posted by Calvin View Post
    Style it using the classes from your main website stylesheet with a wrapper with the width of the content area where you wish to put it and then include it onto the page using the following:

    Code:
    <?php
    
    include( "/New/gallery/index.php" );
    
    ?>
    If that's what you mean?
    Got it to work using this -

    <li><a href="gallery/index.php">gallery</a></li>

    Thank you for your help!

  4. #4
    Join Date
    Jul 2004
    Location
    Ottawa, Canada
    Posts
    1,363
    Tokens
    106
    Habbo
    Yonder

    Latest Awards:

    Default

    That is called a hyperlink, Calvin was giving you the PHP include function because you said include. Be wise with your terminology when asking for coding questions. Ha.

Posting Permissions

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