Link to home
Start Free TrialLog in
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.
Avatar of rbudj
rbudj
Flag of United States of America image

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.
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

Avatar of rrowe68
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).    
Avatar of rrowe68

ASKER

The php may work..... But can you link to another site the way you describe?
ASKER CERTIFIED SOLUTION
Avatar of rbudj
rbudj
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial