[PHP] trigger download with left-click?

2003-06-17 Thread Sam Folk-Williams
Hi, I have a site with hundreds of downloadable forms in MS Word format. Right now to download a form you have to right-click and choose Save Target As... to download the form. Is there a simple script that I could put in that would trigger the download with a left-click? (The end users are

Re: [PHP] trigger download with left-click?

2003-06-17 Thread Marek Kilimajer
Provide a download link which would link to a download.php file. In this file output header('Content-type: application/octet-stream'); and then readfile(); the desired file. REMEMBER to check if it is realy a file that the user can see, otherwise anybody can download your php scripts (and maybe

Re: [PHP] trigger download with left-click?

2003-06-17 Thread David Otton
On Tue, 17 Jun 2003 06:00:28 -0500, you wrote: I have a site with hundreds of downloadable forms in MS Word format. Right now to download a form you have to right-click and choose Save Target As... to download the form. Is there a simple script that I could put in that would trigger the

Re: [PHP] trigger download with left-click?

2003-06-17 Thread Justin French
on 17/06/03 9:00 PM, Sam Folk-Williams ([EMAIL PROTECTED]) wrote: I have a site with hundreds of downloadable forms in MS Word format. Right now to download a form you have to right-click and choose Save Target As... to download the form. Is there a simple script that I could put in that