For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > July 2005 > Re: [PHP-DB] Duplicate record









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Duplicate record
balwant singh

2005-07-30, 8:59 am

in my opinion you can do the following:

1) once the user submitted the form, redirect to a new page

OR

2) may have a unique column in database to avoid duplication like userid
etc.


With Best Wishes

Balwant Singh
========================
INDO ASIAN FUSEGEAR LTD.
A-39, HOSIERY COMPLEX
PHASE - II EXTN., NOIDA
PH: +91 - 120 - 3048140 / 3042222
FAX: +91 - 120 - 2568 473
WEB : www.indoasian.com



Hallvard wrote:

>I have a page that posts data from a form to a mysql database.
>
>The problem is that if the user hits the reload button on the browser, the
>data will be posted again, resulting in a duplicate record.
>
>How can I avoid that?
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com