Does anyone know a way to pass a htaccess userid:password in a hypertext link such that it's transparent to the user? I'm trying to allow users to download a file by hypertext link from a secure subdirectory without them having to enter the userid:password pair themselves. The following construct almost works:
<A href = "http:// <? print "$custf_name".":"."$password" ?>@font.to/downloads/protected/ <? print $file ?> " > <? print $file ?> </A>
In Netscape clicking this link puts one into the secure subdirectory but doesn't bring up the file download dialog. In MSIE I get an error message saying it can't find the page.
What I would like to happen is for the user to click on the link and have the download dialog appear - just like it would for a file link to a file in an unprotected subdirectory. Is there a way to do this?
Thanks and Happy New Year to All!