This is a discussion on "Email Counter" within the PHP Forum section. This forum, and the thread "Email Counter are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Email Counter
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Email Counter
I have an online contact form that I would like to a a counter that automatically numbers the emails that I receive, starting with 1 and then continuing upwards indefinitely. I have looked through countless forums and help pages, as well as consulted my PHP reference books, but I am unable to find anything that helps me. If anyone could suggest how I could accomplish this, that would be magnificent. Thanks!
Last edited by usfgeoff; Dec 13th, 2006 at 17:22. Reason: Figured out answer |
|
|
|
|||
|
Re: Email Counter
The most practical way is to keep a running tally in a database field. When your php processes the form data into the email, extract the current number, increment it, add it to the email where you want and also return the incremented number to the database.
|
![]() |
| Tags |
| contact, counter, number, php |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Age Counter | acrikey | JavaScript Forum | 4 | Jun 2nd, 2008 12:37 |
| Counter | confused | Website Planning | 6 | May 21st, 2007 03:27 |
| hit counter? | skyfire400 | Web Page Design | 6 | Mar 7th, 2006 14:00 |
| A PHP web counter? | k3nshin | PHP Forum | 19 | Feb 19th, 2004 22:35 |
| print "$counter times 2 is ".($counter*2)."<br>" | gwx03 | PHP Forum | 6 | Dec 10th, 2003 10:50 |