brem13 Posted August 29, 2010 Share Posted August 29, 2010 is there a way to auto refresh the same page youre on after a script runs? Link to comment https://forums.phpfreaks.com/topic/211990-auto-refresh/ Share on other sites More sharing options...
PaulRyan Posted August 29, 2010 Share Posted August 29, 2010 Indeed there is brem13 you can use one of the following Thei code must be placed before any content is displayed on the page header("Location: URL HERE"); This code can be placed anywhere <script>location.replace("URL HERE");</script> Hopefully those will be of use, if not just let me know Thanks, Paul. Link to comment https://forums.phpfreaks.com/topic/211990-auto-refresh/#findComment-1104805 Share on other sites More sharing options...
brem13 Posted August 29, 2010 Author Share Posted August 29, 2010 sorry, i should have explained more, i have a login script in a header on a page, thats running a login script in an iframe, after the login script is run, i want it to refresh the header, thus refreshing the whole page, not redirecting it Link to comment https://forums.phpfreaks.com/topic/211990-auto-refresh/#findComment-1104807 Share on other sites More sharing options...
brem13 Posted August 29, 2010 Author Share Posted August 29, 2010 ok, i figured it out, i made a javascript reload function and called it from the login script running in the iframe Link to comment https://forums.phpfreaks.com/topic/211990-auto-refresh/#findComment-1104808 Share on other sites More sharing options...
PaulRyan Posted August 29, 2010 Share Posted August 29, 2010 Glad you worked it out Brem13, if you're stuck with anything just post again Thanks, Paul. Link to comment https://forums.phpfreaks.com/topic/211990-auto-refresh/#findComment-1104824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.