Just a quick thought, I'm sure I'll be told the pit falls if it's a bad idea
but...
Couldn't you, on successful insert etc., set a session or application
variable? The existence of or value of this variable could be checked at the
beginning of the action page and if isDefined or value = whatEverWasSet then
process accordingly otherwise do the insert etc.

Hope this helps

Stephen

-----Original Message-----
From: Ang�l Stewart [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 7:21 AM
To: CF-Talk
Subject: RE: stop reposting of form data


<HTML>
<HEAD>
  <TITLE>How to block multiple form submits.</TITLE>
</HEAD>

<BODY>

<FORM ACTION="receive.cfm" METHOD="post">

<FONT SIZE="2">Dummy Form.</FONT><BR><BR>

<INPUT TYPE="Text" NAME="Name"><BR>
<INPUT TYPE="Text"><BR>
<INPUT TYPE="Text"><BR>

<INPUT TYPE="Button" NAME="Submit" VALUE="Submit Form"
onClick="if(this.value == 'Submit Form') this.form.submit(); this.value 'Please 
Wait.';">

</FORM>

</BODY>
</HTML>

This submit button gets locked after it has been pressed, and a please wait
message is displayed.

(This code taken from CFVAULT.com)
:)

-Gel


-----Original Message-----
From: Mike Grey [mailto:[EMAIL PROTECTED]]

What method is used to stop data from being reposted when a user attemps to
reload an action page.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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