Hairypost Posted April 8, 2007 Share Posted April 8, 2007 Hi all, I am new to PHP and have come from an ASP background and took the plunge into PHP and thus far its far better, however I have some issues with a script I am writing and would appreciate some help. I am trying to load a page into an <iframe> and attempting to stop the “framecontent.php” page from loading on its own i.e. not in the frame unless the var $textonly is found then I will load a text only menu. I do not want to use Javascript, as the text only version will be run without JS or CSS. When I run the code it works to a point, when I open up the framed paged in a new window it does not re-direct, as it should, although I have had it doing so at the cost of some other code area not working. I have got myself into a bit of a mess here and had it working but at different levels from the “framecontent.php” looping a redirect, the ”framecontent.php” page running without the frame when it shouldn’t and all sorts of issues. I do not want to send a query string to the “framecontent.php” other than $textonly as and when needed as the “framecontent.php” would be able to be loaded other wise when it shouldn’t. It would be easier for you guys to save these pages to your local PHP server if you have one to see how this breaks. I know my code is not as logical as it should be, been trying this for a few days now =/ I have attached the files as is with a txt extension for obvious reasons. Thanks in advance for your help. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/46192-trouble-with-sessions-redirects-and-frames/ Share on other sites More sharing options...
Hairypost Posted April 10, 2007 Author Share Posted April 10, 2007 Hmm, perhaps as there is not any replies that this is immposible to do? Link to comment https://forums.phpfreaks.com/topic/46192-trouble-with-sessions-redirects-and-frames/#findComment-225741 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.