optikalefx Posted September 2, 2007 Share Posted September 2, 2007 I know that with javascript you can do this window.parent.left.location = "http://www.site.html" that redirects a frame named left. I know that in php you can do this header( 'Location: http://www.site.html' ) ; But how can i make php load that page into the frame named left? Quote Link to comment https://forums.phpfreaks.com/topic/67684-is-there-a-way-to-redirect-to-a-frame/ Share on other sites More sharing options...
madspof Posted September 2, 2007 Share Posted September 2, 2007 If the script is in left it will load the page in that fram just using the header( 'Location: http://www.site.html' ) ; Quote Link to comment https://forums.phpfreaks.com/topic/67684-is-there-a-way-to-redirect-to-a-frame/#findComment-339993 Share on other sites More sharing options...
optikalefx Posted September 2, 2007 Author Share Posted September 2, 2007 the script isnt in left. theres a main page with 2 iframes in it. this redirect is on the main page Quote Link to comment https://forums.phpfreaks.com/topic/67684-is-there-a-way-to-redirect-to-a-frame/#findComment-340045 Share on other sites More sharing options...
GingerRobot Posted September 2, 2007 Share Posted September 2, 2007 No, you can't do that with php. You're only option would be to have php echo some javascript to change the other frame. Quote Link to comment https://forums.phpfreaks.com/topic/67684-is-there-a-way-to-redirect-to-a-frame/#findComment-340049 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.