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