Jump to content

Frames Target help


elmas156

Recommended Posts

This seems like it should be simple but it's driving me crazy... I have a site that I use a login in conjunction with frames.  After some time of inactivity, the session expires and when a link is clicked in one of the frames, that frame redirects to the login page.  I would like for it to exit the frames and go to the login page.  I'm using the header tag to redirect... like this

 

header("Location: index.php");

 

How can I incorporate "Target='_top'" or something similar to achieve the desired effect?

Link to comment
https://forums.phpfreaks.com/topic/211071-frames-target-help/
Share on other sites

After reading some of the other posts here on frames, it seems as though not many people are using frames at all.  Does anyone have any suggestions on maybe a better way to go if there isn't a solution to my question?  What I'm trying to create is an anonymous messaging system... closely resembling email but messages will only be able to be sent between users of the site so that they can remain anonymous.  The top frame of my site would be a list of messages, and the bottom frame would be where the message is displayed.  Any suggestions on alternatives using PHP, or should I continue with my original idea of using frames to accomplish this?

Link to comment
https://forums.phpfreaks.com/topic/211071-frames-target-help/#findComment-1100827
Share on other sites

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.