I am protecting a series of pdf files with http basic authenication using a htaccess file. Currently I have users click a link that links to a perl script in a password protected directory. This forces them to login and then the perl script redirects them to the correct pdf file based on their username. All of the pdf files are username.pdf.
What I really want is them to type in their username and password into a html form and this form to pass the values to some script that could redirect them and send username and password data to htaccess so that they are automatically authenicated. Is this possible?
I know how to write a perl script to redirect them based off a html form inputted username but I do not know how to pass the values to http authentication.
Thanks.
Last edited by PleaseDontBugMe : 04-20-2008 at 11:25 PM.
Reason: clarify that I know how to redirect based on the username