Re: Duplicate record

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux