Unable To Refresh

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Unable To Refresh

Post by s.dot »

I have a forum, which I intended to be simple, but after user requests is ending up quite complex much like a regular forum. :).

So, with heavy usage I've came across this problem. Users are refreshing threads that they are watching to see if there's any additional posts. The problem? Everytime they refresh, they click "ok" and it sends their post again to the forum.

Is there a way to not resend information upon refresh?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

send them to an intermediate page that redirects them after a few seconds (or via a link) back to the topic. I can also suggest doing a search on the submitted text against their previous posts (within the last day or some short time frame) to see if it's a duplicated post.. (this will help curb double-posting and cross-posting)
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

awesome, I always wondered why that was done.
I now know. Thanks.

By the way, it works beautifully. :).
thegreatone2176
Forum Contributor
Posts: 102
Joined: Sun Jul 11, 2004 1:27 pm

Post by thegreatone2176 »

or check the referer
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

as I've said many many times, and probably will many more.. do not rely on referrer information existing.
Post Reply