we need to have a directory that only people knowing the password can access. We would like to have the same password for everybody (even though the end users will be led to believe otherwise). The directory will contain links to some pdf documents. Every time someone logs into the directory, an email needs to be sent containing a logged-in person's email address.
So here's the dilemma:
if we do an .htaccess protected directory, all of the pages will be protected, including pdfs, but then how do we find out the person's email address and send an email? Is it possible to somehow have a username set up as blank in .htpasswd, but tell them they have to enter their email as the login? the get the email address and send an email?
if we go the php way, i could make sure they are logged in to view the page that will contain the links to pdfs, but nothing will prevent anybody from dowloading those pdfs directly, as i cannot put a php script into a pdf.
is there a way to work this out???
Thanks!
--------------------------------------------------
Goals are dreams with deadlines
-------------------------------------
So here's the dilemma:
if we do an .htaccess protected directory, all of the pages will be protected, including pdfs, but then how do we find out the person's email address and send an email? Is it possible to somehow have a username set up as blank in .htpasswd, but tell them they have to enter their email as the login? the get the email address and send an email?
if we go the php way, i could make sure they are logged in to view the page that will contain the links to pdfs, but nothing will prevent anybody from dowloading those pdfs directly, as i cannot put a php script into a pdf.
is there a way to work this out???
Thanks!
--------------------------------------------------
Goals are dreams with deadlines
-------------------------------------