NaniG Posted December 21, 2011 Share Posted December 21, 2011 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> Quote Link to comment https://forums.phpfreaks.com/topic/253624-iframe/ Share on other sites More sharing options...
AyKay47 Posted December 21, 2011 Share Posted December 21, 2011 what do you mean its displaying the header and footer too? right now you have the height and width set to the entire body, unless this is in a parent element? Quote Link to comment https://forums.phpfreaks.com/topic/253624-iframe/#findComment-1300208 Share on other sites More sharing options...
NaniG Posted December 21, 2011 Author Share Posted December 21, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/253624-iframe/#findComment-1300211 Share on other sites More sharing options...
Stiver112 Posted December 23, 2011 Share Posted December 23, 2011 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? Quote Link to comment https://forums.phpfreaks.com/topic/253624-iframe/#findComment-1300838 Share on other sites More sharing options...
deathadder Posted January 10, 2012 Share Posted January 10, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/253624-iframe/#findComment-1306080 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.