happs Posted October 14, 2007 Share Posted October 14, 2007 Hi Is using <meta http-equiv="refresh" content="0"; url="<? echo $_SERVER['PHPSELF']; ?>"> really the best way to refresh the page? For instance, I have a form that once submitted calls a PHP function to carry out the required task, and then goes back to showing what has been submitted by refreshing the page. The above script works fine, but is using a META really the best way of doing this ? Thanks for your ideas in advance. - Alex Quote Link to comment Share on other sites More sharing options...
mattal999 Posted October 14, 2007 Share Posted October 14, 2007 if you want it to go instantly (as soon as the button has been pressed and the task proccessed on the next page): header("Location: newpage.php"); Quote Link to comment Share on other sites More sharing options...
happs Posted October 14, 2007 Author Share Posted October 14, 2007 Hey That's much better -- neater in a way. Thanks - Alex Quote Link to comment Share on other sites More sharing options...
mattal999 Posted October 14, 2007 Share Posted October 14, 2007 no probs, its what im here to do 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.