Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1018845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:55:09+00:00 2026-05-16T10:55:09+00:00

lets say i have two pages links.html & contents.php … first page contains only

  • 0

lets say i have two pages links.html & contents.php… first page contains only html code while the second page contains some HTML + PHP code….

now i ant to create a page index.php with two DIVs in which i want to show\load the above two pages…

<html>
<body>
    <div id="links" class="myCustom1">
    <!--here will be the links.html page-->
    </div>

    <div id="contents" class="myCustom2">
    <!--here will be the contents.php page-->
    </div>
</body>
<html>

HOW TO DO IT

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:55:10+00:00Added an answer on May 16, 2026 at 10:55 am

    you can use the include functions (require(), require_once() functions would work as well), like this:

    (change links.html to links.php)

    <html>
    <body>
        <div id="links" class="myCustom1">
        <?php include("links.php"); ?>
        </div>
    
        <div id="contents" class="myCustom2">
        <?php include("contents.php"); ?>
        </div>
    </body>
    <html>
    

    I set it to links.html which is your filename but if it’s in a subdirectory you need to specify it as well.

    eg:

    include("subfolder/links.html");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say there are two pages with two different html elements which have the
I have two aspx page on my application. From the first one, lets say
I have 5 pages - for ease lets say: one.html two.html three.html four.html five.html
Let's say we have two flash objects on the same html page. I want
Lets say we have two objects o1 & o2 defined as System.Object, in my
I have two websites that will share some resources, lets say, index.php, functions.js and
Let's say that I have two html pages that are identically designed, but have
For simplicity lets say I have two flex mxml pages. form.mxml button.mxml If the
On a page i have two divs lets say Left_Div and Right_Div. On right
I have two websites: http://example.com http://example.com/sub I have a page, let's say: http://example.com/sub/page1 Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.