Aalee wrote:
> I did a form to add data to a database and it works fine. Once the data is
> entered its gives a thankyou message. But the problem is, if I refresh
> this
> thankyou page, the data is entered again into the database. Why is it
> doing
> so. I couldnt think of a way to fix it. Help...
I've just had this exact problem. The solution as far as I found is one
of the following:
1. Keep a $_SESSION going and set a flag, then on a re-post you can
check the flag to see if it's set and hopefully spot the re-post.
2. Check to see if what you're about to enter is already there, chances
2 matches
Mail list logo