But the data still gets submitted twice if the user refreshes whether you
use post or get.

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 31, 2006 1:56 PM
To: CF-Talk
Subject: Re: FORM Action=GET Clear out URL Parameters after Submit

James Blaha wrote:
> 
> Is there a way when you have a self submitting cfm page to insert a record
and clear out the forms URL parameters so if a user refreshes the template
another record doesn’t get inserted?

Since using a GET to change data on the server goes directly against RFC
2616 9.1.1 I think you will find any workaround that may be suggested
extremely unreliable. Use POST if the request changes data on the server.
That is what POST was invented for.

Jochem



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241848
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to