Dave,

You would probably like to implement a javascript block to stop the 
form
from being submitted twice, as well as an appropriate server side 
double
check (possibly as below)

Jared Clinton.

-----Original Message-----
From: Kelly Matthews [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 9 January 2002 10:56 AM
To: CF-Talk
Subject: RE: Is Their a Standard Way of Preventing Users from Entering
Dou ble Records by Refreshing Browser?


Well I usually query the database first to see if the name/email combo
exists before
inserting it, if so I don't allow it to enter again. So if they do 
refresh
it would prevent that.

-----Original Message-----
From: PHP [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 08, 2002 7:57 PM
To: CF-Talk
Subject: Is Their a Standard Way of Preventing Users from Entering 
Double
Records by Refreshing Browser?


Is Their a Standard Way of Preventing Users from Entering Double 
Records by
Refreshing Browser?

So when I submit A name and Email to a database and then hit refresh on 
the
page I was sent to Another entry appears

in the Database with the same information duplicated.  Is their a 
Common
Practice in your coding to follow to prevent such a 

small (yet potentially very common) Data Distortion.



Thanks,

Dave




______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to