Just use a <CFLOCATION after posting before you include your next page
that way you are just being then forwarded to a new URL so if you hit
refresh you wont be reposting old form data.
By far the easiest way to stop people from doing that
Bill Wheatley
Director of Development
AEPS INC
Allaire ColdFusion Consulting Partner
Allaire Certified ColdFusion Developer
http://www.aeps.com
ICQ: 417645
http://www.aeps2000.com
954-472-6684 X303
IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee. It is confidential and may contain legally privileged
information. No confidentiality or privilege is waived or lost by any
mistaken transmission to you. If you receive this e-mail in error, please
immediately delete it from your system and notify the sender. You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient. The RTA is not responsible for any unauthorized alterations to
this e-mail or attachment to it
-----Original Message-----
From: Stephen Kellogg [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 1:05 PM
To: CF-Talk
Subject: RE: stop reposting of form data
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