The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

1) Not sure if this is possible or not. Perhaps it's even easy, I don't know. Suppose I have a link to a file called "thisisthetext.txt". When a user clicks on the link, I need the browser to open a "Save As" dialog box and NOT read the file in the browser. Unfortunately, changing the file/extension isn't an option for me in this case. It has to stay as is (don't ask why...).

2) This part is bizarre... once you get the browser to open a "Save As" dialog box, is it possible to write a different string to the "File Name" field in the dialog box? I know you're probably thinking "the user can just change it to anything they want", but it's actually not an option in this case.

So, in short, a user clicks on a link to a file called "thisisthetext.txt", a "Save As" dialog box opens up with something like "text123.txt" in the File Name field, and the contents of thisisthetext.txt are stored on the users hard drive as text123.txt.

Is this possible? I have PHP and JavaScript at my disposal. Even if they aren't both possible, any help with either one would be greatly appreciated. Thanks!