Forum Moderators: open
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.