Jump to content

Trouble with Sessions / redirects and frames


Hairypost

Recommended Posts

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]

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.