I've got a script which displays messages and allows users to submit new messages.
On submitting the form, the message is inserted in to the db via a function and on the page being refreshed another function is called which displays all the messages.
What I am finding is the page is not refreshing properly and it is only when I refresh using ctrl + f5 that the new message appears.
At first I assume this was because I was buffering the output, so I took this out as it shouldn't have been in there is the first place. Next up I tried to enforce the browser to refresh using:
header("Pragma: no-cache");
header("Cache-Control:no-cache, must revalidate");
Still no joy, the only other thing I could think it was, was a flash animation which I took out and still no further joy.
Anyone got any ideas?