I set a hidden unique form var, then once the form is submitted convert that submitted
unique value to a client var.
Subsequent submission attempts compare the current form UID to the stored, submitted
form UID(s) and bounce the submission if a dupe is found.
I rely on client vars for session mgmt, but if you don't you might convert to session
vars (add the appropriate locks, of course).
In looking at the code, I can't recall why that CFSET is necessary, rather than just
specifying ''client.'' in the isdefined statement.
---------------------------------------
Matt Robertson [EMAIL PROTECTED]
MSB Designs, Inc., www.mysecretbase.com
---------------------------------------
on the form page:
<INPUT TYPE="hidden" NAME="FormUID" VALUE="Frm#CreateUUID()#">
on the action page:
<CFSET variables.VarPart1="client.">
<CFIF isdefined ("#variables.VarPart1##form.FormUID#")>
... warning message goes here ...
<CFELSE>
<CFSET "client.#form.FormUID#"=form.FormUID>
</CFIF>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists