Avatar of rrowe68
rrowe68
 asked on

Dreamweaver Frames vs. Layers to embed another webpage into site?

I am trying to embed another page into my site so when you open my page - header, etc stay the same, but there page is viewed from within my site.

I know you can do this with frames.... Can it be done with layout objects?

Thanks for any input.
Adobe DreamweaverWeb DevelopmentHTML

Avatar of undefined
Last Comment
rbudj

8/22/2022 - Mon
rbudj

If your server supports php, you can change the name of your page from .html to .php.  Create a new page called whatever you want, example pagebody.php.

In your main page, where you want the information displayed just type...   <?php include 'pagebody.php'; ?>  

Whatever you placed in pagebody.php will show up in that section.
rbudj

Example...

This is the pagebody.php page...

<div>Hello World</div>
<html>
<head>
<body>
<div>This is a header</div>
<?php include 'pagebody.php';?>
</body>
</html>
 
The code above will display:
 
This is a header
 
Hello World

Open in new window

rrowe68

ASKER
What I am trying to do is display another page within my site.   I don't know php (on the list of things to learn).    
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
rrowe68

ASKER
The php may work..... But can you link to another site the way you describe?
ASKER CERTIFIED SOLUTION
rbudj

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.