On Friday, Oct 4, 2002, at 14:05 US/Pacific, Clark, Aimee wrote:
> 1. I have a <cfset counter = 0> in the application.cfm.
This will set counter to zero on every single page request which is
probably not what you want.
I think you want something like:
<cflock name="email_counter" type="exclusive">
<cfif not isDefined("application.counter")>
<cfset application.counter = 0>
</cfif>
</cflock>
(If you're on pre-MX, use scope="application" instead of
name="email_counter" in all the code I show here)
Plus the changes below:
> 2. Then in the page where the tech clicks to close the ticket, before
> they
> click on the submit button to go to the page that processes the
> sending of
> email, I have:
> <cfset counter = counter + 1>
Change to:
<cflock name="email_counter" type="exclusive">
<cfif not isDefined("application.counter")>
<cfset application.counter = application.counter + 1>
</cfif>
</cflock>
> 3. Then this is what I have on my page for sending out the email:
>
> <cfif counter LESS THAN 2>
If you're using CFMX, change this to:
<cfif application.counter lt 2>
If you're on an earlier version, change it to:
<cflock name="email_counter" type="readonly">
<cfset variables.counter = application.counter>
</cflock>
<cfif variables.counter lt 2>
"I have always wished that my computer would be as easy to use as my
telephone.
My wish has come true - I no longer know how to use my telephone."
-- Bjarne Stroustrup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm