Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number Generator script

Status
Not open for further replies.

melstef

Programmer
Feb 19, 2003
69
CA
Hello, I'm looking for a number generator (not random). I have a certificate and I want that certificate to have a different number each time the page opens. I want that certificate to start at 1. Can someone help me with this
thanks
 
so you want a counter.
set a application variable to 1
in the global.asa file each session start add 1 to it and then use the value as needed.

you can find examples searching under "visitor counters asp" etc...

____________________________________________________
The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-3811

onpnt2.gif
 
The problem with that tough, if someone restarts the server, the variables will be zeroed, so the numbers will start with 1 again. I would suggest to write out the number into a text file, read it out before you create the new number, and update it there...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top