To avoid the refresh problem the best way to handle idempotent actions
i.e form submissions is to perform a redirection after the relevant
action has occurred.

Note: This requires a client-side redirect which <cflocation> will do
for you. So the page flow becomes this:

1) Form
2) "Action Page" - Database insert/update etc.
3) Redirect
4) End Page/Confirmation/Form again...

If a refresh is done once on step 4, the Action page will not be run
again.

Hope that helps,

André

-----Original Message-----
From: Shahzad.Butt [mailto:[EMAIL PROTECTED] 
Sent: 10 June 2003 14:18
To: CF-Talk
Subject: Prevent Refresh

What is best way of preventing multiple entries in DB through form
submission when user clicks on REFRESH or BACK button of browser?
 
Thanks
Shaz


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to