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 solution is to have 3 templates.  First template has the form fields.
The second template does the dirty work, ya know, inserting stuff into
database. At the end of that template, do a CFLOCATION to template 3, which
says 'Thanx man, you've made me richer!".  Now, if the user refreshes, they
get the same message, but no form data is reposted.  cool eh?

Considerations:  if u need to display some data from the form variables on
that last page, like "Thank you, [Name], yo've made me richer!" , i say do a
CFlocation (ex. url="thanxpage.cfm?name="Form.name")  in the middle template
with URL variables and display them on the third page.

hope this helps!



----- Original Message -----
From: Mike Grey <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 12:41 PM
Subject: stop reposting of form data


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