Results 1 to 11 of 11

Thread: creating a button to link...
      
   

  1. #1
    maxtech.org is offline Master Sergeant
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    62

    Question creating a button to link...

    Hey guys and gurls.

    I'm a little bit stuck and would apreciate any help, I have scoured about a quater of the forum for an answer as yet to find one.
    I want to create a button on one of my subdomain pages that will allow a visitor to download a small pdf document file to their computer.
    So far I have zipped and uploaded the pdf document that I want to use to my public html folder using FTP manager....at this point is where I get stuck, I can't seem to find a way to link a button to the file. in fact i'm completely lost....

    I couldn't find a tutorial for this one!....might be an idea to help nubes like me out.

    Many thanks
    Max

  2. #2
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: creating a button to link...

    Lets say your pdf file is called myfile. The to link to it you would create a link URL like so;
    http://www.yourwebsite.com/myfile.pdf

    Now- if you right click on a link like that and choose- "Save target as" then you could save it to your computer. If you simply click on it - it will open the pdf file. Once opened- then they could choose save file and save it to their computer.

    So if you want to have a picture or a button represent the pdf file- simple make the link from that picture the same as above.

    Hope that helps some.

    Andy
    PHP- is a blast!

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: creating a button to link...

    Just a small addition to Andy's post: if , as you said, you have zipped the PDF, then the link should be http://www.yourwebsite.com/myfile.zip

    However, in my experience, PDF files, when zipped, don't become any smaller (but then it also depends on the file content) so compare the zipped and unzipped versions. If the size is very similar, consider uploading directly the PDF and not zipping it. In that case the link should be as Andy suggested.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  4. #4
    maxtech.org is offline Master Sergeant
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    62

    Default Re: creating a button to link...

    Thank you Andy and Naval, I think I get it now, you have both been a great help. keep up the good work.

    many thanks
    max
    www.buyitnovv.con

    Oh by the way I don't know if it's just me, but I had built my first page a while back and it was just a coming soon page. a couple of days ago I installed the new internet explorer 7, I thought I would check my website and guess what! all the images had moved out of place and the text has been jumbled up and font has changed also! I will be deleting the page soon so it dosn't matter that much, does this mean that I should now test my up coming website with explorer 6 and 7 as well as firefox and netscape to make sure that they work properly on all of them?
    any comments or insight on this matter would be apreciated.

  5. #5
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: creating a button to link...

    Yes- IE7 is chalk full of problems.

    Andy
    PHP- is a blast!

  6. #6
    maxtech.org is offline Master Sergeant
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    62

    Question Re: creating a button to link...

    hi guys.

    I have followed your advice and i'm still having a problem, I have created an image button and have put in the link to the pdf file which is located in my public html folder. this is how I have linked it:
    www.buyitnovv.com/system.pdf
    I have decided not to zip the file after all as its only 90kb in size

    when clicking on the button I am getting a return message saying the file could not be found.

    I have checked spelling and set the link as file://www.buyitnovv.com/system.pdf.html

    i'm wondering if I need to add html to the end of .pdf when uploading the file to my public html?

    The page the button is on is here: http://www.buyitnovv.com/system.html

    Any help once again would be appreciated.

    max

  7. #7
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: creating a button to link...

    Your first link works fine.

    Andy
    PHP- is a blast!

  8. #8
    maxtech.org is offline Master Sergeant
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    62

    Default Re: creating a button to link...

    Thanks Andy.
    I must be linking the button wrong or its just not working with my browser? i'll keep testing...
    like you say the first link works fine, however when I'm on the page and click the download button it still says file cannot be found
    max

  9. #9
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: creating a button to link...

    What page are you talking about? The first link opens up the pdf. By right clicking on it and choosing "save as" I can download it to my computer.

    You would not link it like:
    system.pdf.html

    You need to publish the page in order to test it. It will not work in preview.

    Andy
    PHP- is a blast!

  10. #10
    maxtech.org is offline Master Sergeant
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    62

    Default Re: creating a button to link...

    Andy
    great news everything is fine with the world.... it works now. I just changed the link to htt:// instead of file:// and it works.

    thanks for all your help. I couldn't have done it without it.

    max

  11. #11
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: creating a button to link...

    Good enough. Have a great Christmas /holiday season.

    Andy
    PHP- is a blast!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49