Jump to content

Iframe


NaniG

Recommended Posts

Hi to all,

 

            Please help me out.

 

Am using iframes into my page and it displaying the header and footer too. I don't want these header and footer in my page. Please, let me  how can i do it?

 

here is my iframe code

 

<iframe src="http://www.google.com" height="100%" width="100%" marginheight="10px" frameborder="0" marginwidth="10px"></iframe>

 

 

Link to comment
https://forums.phpfreaks.com/topic/253624-iframe/
Share on other sites

Hi,

 

    http://www.test.com/test.php -> is an external page, and contains header, footer and page content.

 

I am rendering these page into my page by using IFrame, and in that iframe the the test.php page is shows everything.

 

So, i don't want the header and footer of test.php page, into my page.

Link to comment
https://forums.phpfreaks.com/topic/253624-iframe/#findComment-1300211
Share on other sites

Mabye this is off topic, but as i recall its not legal to imbed other pages like google in your own page using a iframe..

 

It becomes illegal when i appears to be a part of your site, which this iframe will be with a border fo 0px.

 

Im not sure, but mabye you should investigate it? ;)

Link to comment
https://forums.phpfreaks.com/topic/253624-iframe/#findComment-1300838
Share on other sites

  • 3 weeks later...

if your trieng to say that you are going to use iframes to put a header and footer on your website 1 iframe for the header and one for the footer, thats a bad idea rethink this and use something like this

 

say your page is named index.html, now its named index.php use this code instead of the iframes

 

<php
include('header.php');
?>
<body>
keep your original body codes

<php
include('footer.php');
?>

 

now make a file called header.php and a file called footer.php, add your normal header and footer html code into it and you have your page finished, a great alternative to the iframe method

 

if this isn't what you meant please explain it more clearly

Link to comment
https://forums.phpfreaks.com/topic/253624-iframe/#findComment-1306080
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.