We have a registration form for a service on our website. For that form we want a unique reference number which should keep on incrementing. For example FM00001 , FM00002 and so on.
How can this be achieved in PHP. Is there a way to save a Global variable that can be incremented on a successful submission and then retrieved later for new form.
I would store the number in a database and then increment it. Or simpler use a textfile.
Textfile could be performed by: