Results 1 to 5 of 5

Thread: Need a link that will start a download..

  1. #1
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need a link that will start a download..

    Hey lads,


    My web site is almost done, yet all i need is a quick tip on how to add a link to a pdf file that viewers can download, like a price list...

    Your help is much appreciated,
    Lat

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    <a href="pricelist.pdf">Price list</a>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thx, one last question, where do I put the pdf file, within the index folder?

  4. #4
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hmmm...I believe I did not explain myself properly...Since this opens the file in question within my web site, what I wanted to do is allow my customers to start a download by clicking on the link...Can anyone help with proper code?

    Thx

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Since this opens the file in question within my web site, what I wanted to do is allow my customers to start a download by clicking on the link...
    Oh dear.
    It's entirely up to the user and their configuration how the file is handled. There's not much you can do about it. One thing you can attempt is to put it in a compressed archive. Most users have their browsers set up to save a compressed archive rather that trying to handle it with a plugin. Beyond that, there's not much you can do, thanks to IE's second-guessing of the MIME-type.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •