It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Download a file

Download a file

Postby laza on Tue Oct 11, 2005 4:15 pm

I just learnet how to use html coding.How can i add a file to my website and when a user cliks on the link, the file starts to download.Of course asking iou where to save it.
Can you help me please???
laza
 
Posts: 2
Joined: Tue Oct 11, 2005 3:56 pm
Location: Romania

Postby Malcolm on Tue Oct 11, 2005 4:42 pm

Yes!

Code: Select all
<a href="place_where_teh_files_at.zip">Text for teh link-zor</a>
Image
User avatar
Malcolm
100+ Club
 
Posts: 198
Joined: Thu Oct 07, 2004 9:53 pm
Location: Ontario, Canada

Postby webmaster on Tue Oct 11, 2005 4:44 pm

Hi and welcome to DEVPPL.

It can be done exactly like you link to another site, like this:
Code: Select all
<a href="filename.zip">Click here to download</a>


A problem could be that browsers support some filetypes, like image (.jpg .gif and so on). Then you have to ask your visitors to right click on the link and click on Save target as.. But that's not needed for filytypes that browsers can't read, for example .zip or .rar
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby Ash on Tue Oct 11, 2005 5:57 pm

If you had a process you could offer as a download you uplaod that and instead of using the URL for the zip you use the files URL like
I'll use freewebs as a example.

Code: Select all
<a href="http://www.freewebs.com/processname.exe">click here to download</a>
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby laza on Wed Oct 12, 2005 7:35 pm

Thank you all for answering my question.I hope i solved my problem.
laza
 
Posts: 2
Joined: Tue Oct 11, 2005 3:56 pm
Location: Romania


Who is online

Users browsing this forum: No registered users and 6 guests