hi everyone,
I have a file that only contains a number in it (invoice number). Every time someone submits a form, it should increase the value of the number in the file by one.
It's my understanding that the file should be "locked" while it is being written to, so it does not give a duplicate amount if two people submit at the same time. Upon updating the file, it would then unlock the file, so it could then be written to by the next transaction.
The file would exist in the same folder as the form.
That's just my speculation as to how I think it should work. Basically, Open file, Lock file, write to file, unlock file.
Does anyone know of any tutorials that would show how to do this?
Thanks!