Page 1 of 1

What type of counter should I use?

Posted: Thu Dec 11, 2003 7:51 am
by Klaws_wolverine
Hello All,

Here's my problem, we have an online form that connects to a Domino file parser, not all emails are being received! IT is saying that we are gettign all emails, this is impossible, the count is way too low, and ppl are obviously getting timeouts, IT suggested that I put a counter on the submit button.

This will even further reduce the number of emails we get because it will probably prolong the request.


Any Idea what I should do?

Any snippet of code would be much appreciated.

Thanks

Posted: Thu Dec 11, 2003 11:07 am
by m3mn0n
Only increment the counter on a successful execution of that particular part of the script.

eg.

Code: Select all

<?php
if(mail(...whatever...))
{
  // exec counter
} else {
 // error
}
?>