Jump to content

Php And Iframes


gelatine1

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/270262-php-and-iframes/#findComment-1390065
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.