I am looking to have a script created in PHP which manages access to files the following way:
There is a page on my site which asks for Receipt Number and Surname.
The visitor enters those details and presses Submit.
Those details are then searched for. If they're found, the visitor is allowed to download a file.
If the details are not found, a message saying so is returned.
This script can use a text file or a database.
It's important there's also an Admin area where I can add/edit/delete Receipt Numbers and Surnames from the database/textfile.