Email Counter

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 13th, 2006, 17:09
New Member
Join Date: Dec 2006
Location: Tampa
Age: 22
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote

  #2 (permalink)  
Old Dec 13th, 2006, 21:29
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
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.
Reply With Quote
  #3 (permalink)  
Old Dec 13th, 2006, 23:59
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Email Counter

I concur with Geoff.
Reply With Quote
  #4 (permalink)  
Old Jan 21st, 2007, 23:09
Junior Member
Join Date: Jan 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Email Counter

Store them in a database and the id field (or other auto increment) will sort this out for you.
Reply With Quote
Reply

Tags
contact, counter, number, php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 07:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43