DJTim666 Posted June 29, 2007 Share Posted June 29, 2007 Ok, I coded an upload system, and a pagination script. These 2 things are linked together so when you upload something it gets displayed on the pagination page. Now I want to make it so if the upload page is executed, then refresh the pagination page. Is this possible? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 29, 2007 Share Posted June 29, 2007 just an idea but try echoing <META HTTP-EQUIV=Refresh CONTENT=".5; URL=http://www.yoursite.com/yoururl.php"> and then set a session and then if the session isn't set then it won't refresh, make sense? Quote Link to comment Share on other sites More sharing options...
DJTim666 Posted June 29, 2007 Author Share Posted June 29, 2007 Would I echo that statement on the page after they upload something? And why would I need a session ??? I'm confuzzled. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 29, 2007 Share Posted June 29, 2007 na make your upload a function and then at the end of it tack on the meta refresh and the session and then have at the top if(!ISSET($_SESSION['refresh'])){ upload(); } else { pageload(); } 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.