Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 06-17-2014, 03:00 AM
kontrol's Avatar
kontrol kontrol is offline
Contributing Member
 
Join Date: 02-10-10
Posts: 224
iTrader: 0 / 0%
click to download

Hello, how do make a file saved on my server to get downloaded to the users computer on click of a link or a button?
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 06-17-2014, 04:35 AM
NicholasK NicholasK is offline
Contributing Member
 
Join Date: 06-16-14
Location: Pakistan
Posts: 132
iTrader: 0 / 0%
upload file to your server using any FTP program, Don't include any spaces in the name of the file you are going to upload, I recommend you to create a new directory with the name "downloads". Upload file to the directory and your link would be as domainname.com/downloads/filename.extension
 
Reply With Quote
  #3  
Old 06-17-2014, 05:28 AM
kontrol's Avatar
kontrol kontrol is offline
Contributing Member
 
Join Date: 02-10-10
Posts: 224
iTrader: 0 / 0%
what if you want to use a button instead of a link
 
Reply With Quote
  #4  
Old 06-18-2014, 12:53 AM
williamforrest williamforrest is offline
Contributing Member
 
Join Date: 12-01-13
Posts: 98
iTrader: 0 / 0%
you can use a <button> by just adding and onclick event to it..
HTML Code:
<button onclick="window.location='http://mywebsite.com/path/to/file.ext'">Download</button>
 
Reply With Quote
  #5  
Old 06-18-2014, 01:18 AM
kontrol's Avatar
kontrol kontrol is offline
Contributing Member
 
Join Date: 02-10-10
Posts: 224
iTrader: 0 / 0%
Thank you very much
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
One Click Install vs Download - Wordpress stephengfm Blogging Forum 6 06-04-2012 05:39 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:31 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC