View Full Version : Refresh Frames
09-02-2007, 02:40 AM
I have a logout button in my top frame, when it's hit it runs:
#### log out by destroying the session! #####
header('Refresh: 0; url=music.php');
But I also want the bottom frame to be refreshed... Can this be done in php? Can I target the frame?
09-02-2007, 02:56 AM
09-02-2007, 03:01 AM
Ahhhhh bummer so can I do it with my current file? So do I need to have another file which contains js?
09-02-2007, 03:35 AM
No, you can do it like:
09-02-2007, 03:51 AM
Wow that worked!!!! Now I tried to edit the signup file, becuase I need to refresh the top frame on signup... I added the top line to the authenticate.php, which refreshes the frame in the top... but the bottomFrame has the error below...
And the error:
Warning: Cannot modify header information - headers already sent by (output started at /home/html/authenticate.php:80) in /home/html/authenticate.php on line 81
09-02-2007, 03:57 AM
09-02-2007, 04:05 AM
you cant change the header information after anything has been printed onto a page.(even if its just jsut a space/linebreak)
09-02-2007, 04:28 AM
Mwnciau dude perfect works flawlessy now thanks heaps!!!
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.