gelatine1 Posted November 3, 2012 Share Posted November 3, 2012 Hello I have a website that is in an iframe. i want that website (from inside the iframe) to be able to alter/ access variables/cookies in the website that contains that iframe. is that even possible? if so please tell me how. Quote Link to comment https://forums.phpfreaks.com/topic/270262-php-and-iframes/ Share on other sites More sharing options...
Guber-X Posted November 4, 2012 Share Posted November 4, 2012 i did something simular with my current project. so what i did in the main part of the page was something like this to allow me to view single news feeds in my iframe. reason for me doing this was because i have a RSS feed, so when the user clicks on a news topic in my RSS it would direct them to that topic only. <?php if($_GET['feed']){ $frame = 'home.php?feed='.$_GET['feed']; } else { $frame = 'home.php'; } ?> <iframe class="mainframe" src="<?php echo $frame; ?>" name="mainframe"> </iframe> Quote Link to comment https://forums.phpfreaks.com/topic/270262-php-and-iframes/#findComment-1390065 Share on other sites More sharing options...
gelatine1 Posted November 4, 2012 Author Share Posted November 4, 2012 I don't really mean accesing the src property with php, but also read data from the iframe and acces from inside the iframe to the owner of the iframe Quote Link to comment https://forums.phpfreaks.com/topic/270262-php-and-iframes/#findComment-1390083 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.