November 1st, 2012, 06:09 AM
stop duplicate entry to db on refresh the page
Stop to re enter data into db after refresh the browser
i used header (redirect to page ) but wen user press back button from browser and submit button is clicked data is entered again to db
November 1st, 2012, 06:31 AM
Then do a check to see if the data already exists before the INSERT
Comments on this post
"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984
November 2nd, 2012, 06:28 AM
Isn't using primary key is a solution for this? Though I am not expert of programming but using primary key can avoid duplication in the same field.
November 2nd, 2012, 09:04 AM
Well this one would be kind of hard to answer without knowing the db table structure and what is being entered. However, you do need to have the form check to see if the db already contains the update from the user.
if you provided your code and db structure we would be able to help come up with a good solution for you.