Hi experts,
I'm not sure whether what I'm trying to achieve is possible (or reasonable) but in any case I'll explain what I'd like to do and I welcome your comments.
One of my pages has multiple 'file download' links. Some of those files can be downloaded without any authentication but for others I would like user to enter 'Username & Password'. I realize that I can create a login page etc. however I am hoping that I won't need to do that but instead can follow the steps below:
a) user presses 'file download' link, that in turn invokes a particular PHP script
b) for downloads requiring authentication, the PHP script open a small Username & Password dialog
c) user enters and submits Username and Password and if correct, file downloading commences else 'Invalid ..." message is returned and no download is done
d) on completion of download, if user presses the same 'file download' link again they will (again) be prompted to enter Username & Password.
I suppose what I'm asking is can the browser user 'authentication' functionality be utilised?
Any thoughts.
/Michael
Start Free Trial