fuse, (act_xxx_post or something) and then cfinclude the action template and
then cflocation to a success page or anywhere else..
-Original Message-
From: Peter Theobald [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 20, 2001 1:35 AM
To: CF-Talk
Subject: Re: stop reposting of form data
, January 20, 2001 1:35 AM
To: CF-Talk
Subject: Re: stop reposting of form data
I think this is how Fusebox gets around the problem of having all requests
go to the same page (index.cfm) (dont quote me on that... I dont know much
about Fusebox...)
But the problem with this is you are causing
this is how i handle my stuff. let's say we have 2 templates. First
template has the form fields and stuff. template 2 sends the information to
a database and also displays a "Thank You!" message. if the user were to
click "Refresh",the information could be entered twice, thats bad!
The
HTML
HEAD
TITLEHow to block multiple form submits./TITLE
/HEAD
BODY
FORM ACTION="receive.cfm" METHOD="post"
FONT SIZE="2"Dummy Form./FONTBRBR
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
I think this is how Fusebox gets around the problem of having all requests go to the
same page (index.cfm) (dont quote me on that... I dont know much about Fusebox...)
But the problem with this is you are causing another round-trip from the client to
server and back again.
Does anyone have a
html
font size=3You 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
INPUT TYPE="Button" NAME="Submit" VALUE="Submit Form"
onClick="if(this.value == 'Submit Form') this.form.submit(); this.value =
'Please Wait.';"
Gel,
This is the whole discussion we've been having in the "Great idea Adam!"
thread
This relies on JavaScript, and won't work at all in all
.
Thanks I'll use your method.
-Original Message-
From: Phoeun Pha [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 19, 2000 3:17 AM
To: CF-Talk
Subject: Re: stop reposting of form data
this is how i handle my stuff. let's say we have 2 templates. First
template has the form fields and stuff
= 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
TITLEHow to block multiple form
, 2001 9:30 AM
To: CF-Talk
Subject: Re: stop reposting of form data
html
font size=3You 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
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
On Thu, 18 Jan 2001 13:41:41 -0500, "Mike Grey"
[EMAIL PROTECTED] wrote:
What method is used to stop data from being reposted when a user attemps to
reload an action page.
I use session variables. For example:
!--- FORM.CFM ---
cfset session.thisform = true
form action="action.cfm"
12 matches
Mail list logo