Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

force a "Save file"-box to be opened when clicking on a link

Status
Not open for further replies.

droplet

Programmer
Mar 28, 2002
2
SE
I have a problem.

I want a "Save file"-box to pop up automaticly when clicking on a link no matter what kind of file.
If the file is a text-file or html-file i don't want it to open in the browser, but be saved by client.
Any one who knows how to force a "Save file"-box to be opened please tell me how to do.. [sadeyes]

Thanx
Anna-Sara
 
You need to use Server side programming to send out the following header :

Code:
header ("Content-Disposition: attachment; filename=file.html");
Regards

David Byng

spider.gif


davidbyng@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top