Forum Moderators: open

Message Too Old, No Replies

Save html button in a html file

         

turbohost

12:21 pm on Aug 3, 2005 (gmt 0)

10+ Year Member



Hi Guys,

I want to add a link to my html page where a user can click on to save the html file to his/her own pc (so withiut the use of file > save). I was wondering if this was possible?

Turbo

turbohost

9:55 am on Aug 5, 2005 (gmt 0)

10+ Year Member



Someone please?

tedster

10:11 am on Aug 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've never come across anything like this - and on first glance it seems like it might open up security holes.

j4mes

10:24 am on Aug 5, 2005 (gmt 0)

10+ Year Member



Actually, Gmail manages this with some attachments (such as images) with view and download options.

However, I think is this is based on sending different mime-type headers depending on which is clicked, so this thread would probably fare better in the PHP forum.

Also, as tedster said, you've got security to think of since allowing un-checked download of files, I could request /etc/passwd and such.

J.