We need to allow visitors to a website to click a link to popup a window where they can view a file. This file is behind a htaccess locked directory, so the script has to pass the login. We have the visitors already qualified in another way, the only reason the directory is locked is so that robots and others outside of the main area can not find it or view it.
It has a pdf file in it.
We just need a simple php that says
1. click here to see the file
2. pass the credentials
3. popup new window.
That’s it, really simple.