User fills out on-line form containing the following editboxes:
Their email address
When user clicks "submit" button:
(a) These details are added to a MySQL database, together with his IP address and the date. If necessary, a .sql file (tables) should be supplied with the script. I do not know much about databases.
(b) The ID number is encrypted with blowfish or something similar (but must be strong). Note that our software will need to decrypt this so we must agree with the encryption method. I can supply a demo program for testing if necessary.
(c) An email is sent to the user with the encrypted number. We must be able to edit the wording in this email so the section of the script containing this must be clearly commented (or preferably it can be a variable or a text file?).
(d) An email is sent to us with the user's details. This should be set as an option with a variable, in case we do not wish to receive this in the future.
(e) A webpage is displayed saying "Thank you for your submission. An email has been sent to you.",
(f) If the same user tries to use the form again to add another ID number now or in the future, he is prevented from doing so. That's the reason why his IP address is recorded the first time. This may be similar to polling scripts where the user is prevented from voting more than once but, in any event, it must be strong. The method is up to you.
A variable must be used for the password to encrypt the ID number so we can change it as necessary. This must NOT be hard-coded.
Each section (as above) should be separated with, for example," // ########## ENCRYPTION START" and " // ########## ENCRYPTION END" etc and operations well commented throughout for any changes I may wish to make later.
The script must have a consistant look throughout so [url removed, login to view] and [url removed, login to view] files must be included.
Also I will own the copyright.