Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

adding link to download pdf file


Recommended Posts

I have created a new msds.php file and added the link to the information box. The link is material safety data sheets, that works fine. Now I can not find anywhere on how to create a link inside my new msds.php file that when click on, it will download or open up a pdf file that is stored on the server. Can anyone help me out a little with this? Thanks

Link to comment
Share on other sites

Something like this if you put the link in a "pure HTML" section of code:


<a target="_blank" href="http://www.yoursite.com/catalog/msds.pdf">Pdf File</a>

Or like this if between PHP tags:


echo '<a target="_blank" href="http://www.yoursite.com/catalog/msds.pdf">Pdf File</a>';

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.


"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -


"Headers already sent" - The definitive help


"Cannot redeclare ..." - How to find/fix it


SSL Implementation Help


Like this post? "Like" it again over there >

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...