Hey all! I know that I can use rand() to generate a random number.
But what I want to do is generate a number starting from 100001 when a user submits a form on my website (as a confirmation number). Then the next time a user submits the form, I want the confirmation number to be 1-digit higher, and so on so on (+1 each time).
How can I accomplish this?
Further more, I want that confirmation number to both echo back to the user on a confirmation screen, but then shoot an email to me with all of the form data INCLUDING the confirmation number that was generated.
How can I accomplish this?