On Tue, 28 May 2002, Camilo Gonzalez wrote:

> Gurus,

> I've been having this problem in various permutations throughout my Perl
> life. For this particular function, I set $confirm_counter to 1. Then I use
> a foreach loop to send email to multiple recipients. Within the foreach
> loop, I increment $confirm_counter by using $confirm_counter++. I then use
> the value of $confirm_counter as a test for an if conditional. If the
> counter is one, then a confirmation email will be sent to the person who
> submitted the form. If not, the confirmation email will be skipped. This is
> to prevent any user from receiving more than one confirmation email.
> However, it seems that $confirm_counter is not being incremented and the
> user will receive as many as 7 email confirmations. Any ideas? I'm enclosing
> the code in question below.

Does it happen when someone clicks seven times on the link in
quick succession? Wouldn't you have to prevent the script from
being run more than once at the same time? Lock a file or
something.

I have the same problem, but gave up.

-- 
Greg Matheson                The teacher as the monkey in the works.
Chinmin College              Intervention without understanding.
                                 
Taiwan Penpals Archive <URL: http://netcity.hinet.net/kurage>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to