Single file to Query PHPlist user database and check if email is subscribed
## Deliverables
I need to create an application where users need to be subscribed to a mailing list before being allowed to access certain pages/features.
This should work as follows.
The page includes the new script to be created. include('path/to/[login to view URL]');
[login to view URL] requests the email address from the user and does a server side validation/sanitization.
Connect to the MySQL database and check that email is subscribed to the active list.
Start session and set db_query_email = "ok" or return:
"Your email address is not recognised. You need to be subscribed to our mailing list to access this page. Please subscribe here";
No installation is required on my server. I need to be able to test on your server first so you will need to install phplist version 2.10.9.
Script should have the following as variables for easy integration into production site:
I could do this myself but don't have the time.
I know that someone with experience of the PHPlist database structure could do this in minutes so no ridiculous bids please
Thanks