The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Simple Counter Needed
Hello.
I need a bit of help with something that is probably quite simple (once you know what you are doing!). I have designed an online form for my users to fill in which sends a nice formatted email to a particular department of our company. BUT.. I need to get it to generate an individual number to be sent with this info to differentiate each time the form has been filled in. Er.. Does that make sense? It needs to increment by one each time someone sends the form. What would be the easiest way to do this? Any help would be appreciated! |
#2
|
|||
|
|||
put this above your mail() line (or above the variable you use for the message)
PHP Code:
|
#3
|
||||
|
||||
Easy when you know how!
I'll give it a go later and see how I get on. THANKS!! |
#4
|
||||
|
||||
Almost seems to work, although it doesn't seem to increase by 1 each time someone posts the form.
(It's definitely 777) Any ideas why it's not working ? |
#5
|
||||
|
||||
Someone MUST have some ideas.... If so PLEASE take the time to put me out of my misery
THANKS! |
#6
|
||||
|
||||
Quote:
PHP Code:
|
#7
|
||||
|
||||
Thanks muxx, I'll give it a go. I appreciate your help!
|
#8
|
||||
|
||||
Not that I doubted it for a moment.. but it works brilliantly....
A HUGE.. THANKS !!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|