You can also set a cookie or session variable when they hit it the first
time and only allow insert queries if there is an abasence of such . . .

Dave


----- Original Message -----
From: "Terry Bader" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2001 9:46 AM
Subject: RE: disabling back or second insert


> expire your pages...
> I also do a JS location on the action page after the submission page so
that
> if they hit the reload button, then it wont re=post the form data...
>
>
> Terry Bader
> IT/Web Specialist
> EDO Corp - Combat Systems
> (757) 424-1004 ext 361 - Work
> [EMAIL PROTECTED]
>
>
> (757)581-5981 - Mobile
> [EMAIL PROTECTED]
> icq: 5202487   aim: lv2bounce
> http://www.cs.odu.edu/~bader
>
>
>
>
>
>
> > -----Original Message-----
> > From: Smith, Daron [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, April 12, 2001 9:17 AM
> > To: CF-Talk
> > Subject: disabling back or second insert
> >
> >
> > I have a registration form, that queries initially to make
> > sure that the
> > registrant is not already registered, so it eliminates people from
> > registering more than one time if they come back to the site,
> > however if
> > they submit the form and do not think anything has happened,
> > they can use
> > their back button, hit the submit button and the query does
> > another insert
> > and I end up with multiple records in my DB.  What is the best way of
> > keeping them from doing this?  An expiring cookie? Or is
> > there javascript to
> > eliminate the ability to go back?
> >
> > Thanks
> >
> > Daron J. Smith
> >
> >
> >
> > Archives: http://www.mail-archive.com/[email protected]/
> > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to