Cassie Posted July 29, 2009 Share Posted July 29, 2009 Hello there! I'm really sorry if there's already been thousand threads about this and probably countless tutorials too, the problem is, i have no idea what to search for on google or in this forum. Let me describe my problem: I'm currently working on a page, which's index is using an Iframe. Now i would like to have some kind of linkage that opens the index page with a certain page, for example an about page, opened in the iframe. I've seen many pages where people used that kind of thing, and I've asked them how they have done it. I was told to do that i need to know basic php (which sadly, i dont) and how to pass down variable from the URL to use on the page. Like already said, i have sadly almost no knowledge of Php, which is why i wanted to ask here if there is anyone that could help me, and even if it was just by linking me to another topic, since, like stated before, i don't know what to call it because i couldnt find anything usefull under "php pass down variables" or anything like that. I hope someone could help me here! I would really apreciate it! Link to comment https://forums.phpfreaks.com/topic/167950-php-and-iframes/ Share on other sites More sharing options...
patrickmvi Posted July 29, 2009 Share Posted July 29, 2009 Can you maybe provide an example of a site that does what you want to do? I'm having a hard time understanding why you would need PHP to do what you're explaining. Link to comment https://forums.phpfreaks.com/topic/167950-php-and-iframes/#findComment-885828 Share on other sites More sharing options...
Cassie Posted July 29, 2009 Author Share Posted July 29, 2009 Ok, heres one page: It usually opens like this: http://ashen-ray.com/ And by adding the ?page=gallery code at the end of the URL, the iframe automatically opens the page with the iframe but with the page set to Gallery. http://ashen-ray.com/?page=gallery Link to comment https://forums.phpfreaks.com/topic/167950-php-and-iframes/#findComment-885830 Share on other sites More sharing options...
RichardRotterdam Posted July 29, 2009 Share Posted July 29, 2009 Those pages could just as wel have been plain html pages. So instead of it showing ?page=gallery as url it might as wel show /gallery.html Other then that I can't see any reason in that example that justifies the use of the iframe. The usage of a template would have been better. What is reason you want to use an iframe btw? Link to comment https://forums.phpfreaks.com/topic/167950-php-and-iframes/#findComment-885843 Share on other sites More sharing options...
Cassie Posted July 29, 2009 Author Share Posted July 29, 2009 Well i contacted the user of that page, she's the one that told me that php would be the way to go. I want to use iframes because i already managed to code most of my page with it, i'm not very good with any other codes besides html and if i had to completely write my page again with something else i'd probably freak out, since on one side, html is the only thing i get along with and understand at least partly, and i have no one who could help me with php And if you had just used the /gallery.html thing it would only show the content of the gallery.html page, which was bound in on the iframe, so you wouldnt have the Menu anymore, so i gues that wouldnt quite work Link to comment https://forums.phpfreaks.com/topic/167950-php-and-iframes/#findComment-885844 Share on other sites More sharing options...
RichardRotterdam Posted July 29, 2009 Share Posted July 29, 2009 Well I still recommend you to at least reconcider rewritting it without frames. But I guess you could use php to do something like that. look into $_GET Link to comment https://forums.phpfreaks.com/topic/167950-php-and-iframes/#findComment-885852 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.