CDirenzi
asked on
If page is refreshed data is written twice to database
I have an HTML form that gets user info and when they press the submit button it will add the data to the database and then display the information they just added. When the user is on the confirm page, if he pushes refresh it will resubmit the data to the database. I cannot check to see if the row already exists, because it is okay for there to be multiple rows that are the same (just with a different time stamp). What is the best way to prevent this from happening? Thanks!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window