> Is there a way for a php page to automatically increment a number and
> store
> it every time the page is loaded.
> 
> I want to generate an invoice number that goes up 1 everytime the HTML
> form
> is sent to it.

I assume you're talking about incrementing for everyone that accesses
your site. For that you need a database to keep track of the number for
all users. You'd be replicating an "Application Variable" that other
languages have.

If you're talking about incrementing on a per user basis, i.e. each time
a specific user goes to the form, increment their number, then use
sessions to keep a count.

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to