homepage Welcome to WebmasterWorld Guest from 54.196.196.62
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Does php code in iframe work with code outside of this iframe?
tbe22




msg:4545585
 9:37 am on Feb 14, 2013 (gmt 0)

I have a wordpress blog, with an iframe included in sidebar.php. I have some wordpress specific code inside of this iframe, and it does not seem to "interact" with the rest of the wordpress code. Is it normal? Is there any way to get around this one?

<ul><li><a href="http://www.domain.com/" target="_blank">domain.com</a></li><?php $blog_title = esc_attr( get_bloginfo( 'name', 'display' ) );$words = split(' ', $blog_title);$actor_name = ucwords($words[0] . ' ' . $words[1]); ?><li><a href="http://www.name.com/pictures/<?=str_replace(' ', '+', $actor_name)?>" target="_blank"><?=$actor_name?> Model Search</a></li></ul>

Thank you.

 

topr8




msg:4545590
 9:53 am on Feb 14, 2013 (gmt 0)

why would it? they are completely different files.

tbe22




msg:4545591
 9:54 am on Feb 14, 2013 (gmt 0)

So there is no way to make it work at all?

swa66




msg:4545607
 10:42 am on Feb 14, 2013 (gmt 0)

The purpose of an iframe is to have a different "webpage" inside a box on another page. If they are related it is either because you make it so on the server, or either in your mind. For the browser and the server as such: they are 2 independent requests.

So the question you probably should pose yourself is : why did I use an iframe ?

tbe22




msg:4545611
 10:52 am on Feb 14, 2013 (gmt 0)

I used the iframe because I am hiding a lits of links from google. I have it blocked by robots.txt. I am hiding a network of sites.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved