Re: Duplicate record

From: Date: Sat, 30 Jul 2005 12:00:36 +0000
Subject: Re: Duplicate record
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-39997@lists.php.net to get a copy of this message
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?


« previous php.db (#39997) next »