|
-
Aug 1st, 2011, 09:11 AM
#1
Thread Starter
Hyperactive Member
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
-
Aug 1st, 2011, 07:57 PM
#2
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.
-
Aug 1st, 2011, 08:33 PM
#3
Thread Starter
Hyperactive Member
Re: Force a page refresh
I tried something like that but it just kept reloading
-
Aug 1st, 2011, 08:51 PM
#4
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");
-
Aug 4th, 2011, 09:14 AM
#5
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|