wargolchaos Posted August 18, 2009 Share Posted August 18, 2009 Is there any good way to refresh a page without using header:location? Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 18, 2009 Share Posted August 18, 2009 Javascript. It sounds like what you want to do is client side, not server side. Quote Link to comment Share on other sites More sharing options...
oni-kun Posted August 18, 2009 Share Posted August 18, 2009 You can use the header such as this, it'll be easier in the long run.. // refresh / redirect to an internal web page header( 'refresh: 5; url='.$_SERVER['PHP_SELF'] ); echo '<h1>You will be re-directed in 5 seconds...</h1>'; Of course the '5' may become a '0' in case you don't want it to wait. Use ob_start() at the beginning of your code if you wish to use this later on in a page. Quote Link to comment Share on other sites More sharing options...
wargolchaos Posted August 18, 2009 Author Share Posted August 18, 2009 Thanks, instead of making my code any more complex I just added a link that leads back to the same page. This way it refreshes. Quote Link to comment 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.