Download box

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Vestergaard
Forum Newbie
Posts: 2
Joined: Sun Nov 03, 2002 11:13 am
Location: Denmark

Download box

Post by Vestergaard »

Dear php people

On my homepage I have certain files that people can download. I have just linked to these files in the usual way. So when people want to download a file, they have to rightclick and use the context menu in order to download to their harddisc. Unfortunately many leftclick or doubleclick on the link, and then the computer will try to open the file. This can cause troubles like freezing etc.... So my question is, if it is possible to write a php script, so that when people leftclick on the link, a download box will pop up, where they can choose what to do: Open, download or cancel. I have seen these kind of boxes at Tucows: see for example:

http://slomirror.tucows.com/system/adnl ... 86874.html

Wait about 8-12 seconds and a box will pop up. I hope you can give me some hints how to make a script that does this?

Sincerely,

Erik
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

Javascript :)
Vestergaard
Forum Newbie
Posts: 2
Joined: Sun Nov 03, 2002 11:13 am
Location: Denmark

Post by Vestergaard »

I am afraid, I did not get the point?

Erik
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

use java script to pop-up the box, try searching the net for "javascript resourse".
Post Reply