-
Force a page refresh
i have an issue where when i run reports then add another record then run the same report it has the data of the first report until i click the refresh button on IE 8. this doesnt seem to be an issue with firefox 5. my question is what is the best way to force a refresh at the beginning of my report php page that is compatiable with all browsers? a php solution would be best, but im open to any suggestions. thanks
-
Re: Force a page refresh
You can use the header location function. Although, If it is refreshing the same page, you will need a way to confirm it refreshed already, so it doesnt do an infinite refresh.
PHP Code:
header("Location: page.php");
Keep in mind that header() must be called before anything is outputted.
-
Re: Force a page refresh
I tried something like that but it just kept reloading
-
Re: Force a page refresh
You could pass a parameter and then check to see if the parameter is set. If it's set you know the page has loaded via a refresh.
PHP Code:
header("Location: page.php?s=true");
-
Re: Force a page refresh
This thread had an identical question. The solution in that thread was the same as lintz's however it was also suggested to use a meta refresh in HTML if the refresh doesn't have to occur in PHP.
http://www.vbforums.com/showthread.php?t=656311