that wasn't the problem.  he wants to know how to handle situations where a
user REFRESHES a page after submitting a form (ya know, IE asks if ya want
to repost data).  and that enters data twice!

-----Original Message-----
From: Peter Theobald [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 9:30 AM
To: CF-Talk
Subject: Re: stop reposting of form data


<html>
<font size=3>You should prevent this both on the client side (for a nicer
interface) and on the server side (in case scripting is turned off, or a
hacker wants to mess with you by submitting his own form to your
scripts)<br>
<br>
Server side:<br>
Have a hidden field set to a random string (use CreateUUID) and save that
&quot;transactionID&quot; in the database. Dont let someone save the same
&quot;transactionID&quot; twice.<br>
Client side:<br>
When the user hits 'submit' change the submit button text to read
&quot;Please wait...&quot;<br>
When the user hits 'submit' check to make sure the button still reads
&quot;Submit&quot; and not &quot;Please wait...&quot;<br>
<br>
At 01:41 PM 1/18/01 -0500, Mike Grey wrote:<br>
<br>
<blockquote type=cite cite>What method is used to stop data from being
reposted when a user attemps to<br>
reload an action page.<br>
<br>
Thanks<br>
<br>
Mike Grey<br>
<br>
<br>
<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to