I have a script which collects information from a web form and writes the inputs into a .txt file and then forwards the .txt file as the body of an email.
I am concerned as to whether multiple users filling in the form may be able to hit the submit button at the exact same time and run the script simultaneously causing a collision where the user writes over the others text file, thus mixing user information.
I was wondering if anyone knows the order of process for vbscript? Will script wait till it completes one cycle before starting another?
Or will the server lock the .txt file while it is being written too? Will this throw an error?
I am trying to understand the underlying sequence before I write additional code to create uniques text file names and deleting them once I know they have been passed on to the mail server.
Open for discussion....