Ok, here it's another one: you're writing your data in the database, right? I mean if I come to your shoutbox, you ask my name and my message and then write them in your database. So, I might come to your program and enter "bijan" for my name and then "hello" for my message, so, you take it and put it in your db. Now if I come 3 days later and enter "bijan" and "hello" again, you should write it in your db again, because it's right that I'm writing the same thing, but it's 3 days passed and there are other messages after my old message, so, I'm aloud to enter the same thing again. Now you can do the same thing in here, whenever you want to write something in your db, check for the last record, if the last record contains the same info as what you're trying to enter, then you can be sure that the person hit F5 or something like that.
Of course by doing this you are also preventing ppl to enter something twice delibrately, but then I think it's the easiest way possible (feasible!)