RE: MailMerge problem, Jon Grosse, 02-27-2008
Send headers that will force a "file save"
by Roger Harris, February 27, 2008 12:07
The default HTTP headers returned from a script will tell the browser that the output is HTML, which the browser will display. However, you can use the HEADER command to send different headers. Setting the content type to "application/octet-stream" and the disposition to "attachment" will cause the browser to pop up the File Save window. Before outputting anything else from the script, do this:<% HEADER "Content-type: application/octet-stream"; HEADER "Content-Disposition: attachment; filename=$File_Name$"; HEADER ""; %>(Set a file name in $File_name$ or specify a literal file name). Then, just output whatever you want to go in the file that the user will save.
Name E-mail optional TopicMessage:
HTTP Link: Link text: