redarrow Posted March 16, 2009 Share Posted March 16, 2009 Advance thank you. goes like this iframe pulls the page in. the page it pulling in has links. need to get those links to work so the iframe dosent add it to it own page. <?php echo"<center><iframe STYLE=' background-color: #3366ff; scrollbar-base-color:#3366ff; scrollbar-face-color:#3366ff; scrollbar-arrow-color:#3366ff;' src='show_profile_on_podcast_page.php' target='_top' width='200px' height='190'> <p>Your browser does not support iframes.</p> </iframe></center>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/149595-solved-iframe-links-and-php/ Share on other sites More sharing options...
Andy-H Posted March 16, 2009 Share Posted March 16, 2009 <a href="www.x-ample-anchor_href.com" target="_top">Test</a> That should give you the desired effect? Quote Link to comment https://forums.phpfreaks.com/topic/149595-solved-iframe-links-and-php/#findComment-785543 Share on other sites More sharing options...
redarrow Posted March 16, 2009 Author Share Posted March 16, 2009 it does not, it pulls the members page within the iframe? any i dears please? stuck. when i click the link that the iframe got within it, it pulls into the iframe again. Quote Link to comment https://forums.phpfreaks.com/topic/149595-solved-iframe-links-and-php/#findComment-785545 Share on other sites More sharing options...
redarrow Posted March 16, 2009 Author Share Posted March 16, 2009 so the question is, can you use a iframe with links added from the iframe page, and goto a external page. Quote Link to comment https://forums.phpfreaks.com/topic/149595-solved-iframe-links-and-php/#findComment-785548 Share on other sites More sharing options...
Andy-H Posted March 16, 2009 Share Posted March 16, 2009 try targetting it at the _PARENT target? Quote Link to comment https://forums.phpfreaks.com/topic/149595-solved-iframe-links-and-php/#findComment-785551 Share on other sites More sharing options...
Solar Posted March 16, 2009 Share Posted March 16, 2009 What you want to do is to name your iframe. <?php echo"<center><iframe name="TheIFrameNameGoesHere" STYLE=' background-color: #3366ff; scrollbar-base-color:#3366ff; scrollbar-face-color:#3366ff; scrollbar-arrow-color:#3366ff;' src='show_profile_on_podcast_page.php' target='_top' width='200px' height='190'> <p>Your browser does not support iframes.</p> </iframe></center>"; ?> </iframe> If you have a link inside the iframe on the iframe's main page, your link would look like this. <a target="TheIFrameNameGoesHere" href="yourlinkhere.php">Testing</a> Hope this helps Edit: Oops you want on the outside of the iFrame? _Parent should work. <a target="_parent" href="yourlinkhere.php">Testing</a> Quote Link to comment https://forums.phpfreaks.com/topic/149595-solved-iframe-links-and-php/#findComment-785563 Share on other sites More sharing options...
redarrow Posted March 17, 2009 Author Share Posted March 17, 2009 solar, Your the man, Thank you so much, good example mate cheers! SOLVED Quote Link to comment https://forums.phpfreaks.com/topic/149595-solved-iframe-links-and-php/#findComment-786513 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.