www.webdeveloper.com
Results 1 to 3 of 3

Thread: href link don't download the file

Hybrid View

  1. #1
    Join Date
    Sep 2013
    Posts
    1

    href link don't download the file

    hii guys, i took a download link from web ,
    the link from the web i took direct download a zip file .
    but after i add the link into my web on click (target _blank) its open the web instead of download the zip file
    how the web success to block the direct download ?

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,217
    Might help:

    Making an image a download link:

    <p><a href="URL path to zipped file" title="Mouseover Description"><img style="width: XXpx; height: YYpx; border: 0;" src="Path to image" alt="Text Description"></a></p>

    Download Text Link only:

    <p><a href="URL path to zipped file" title="Mouseover Description">Link Text Description</a></p>

    Open Main Page and Affiliate's:

    <p><a href="http://mainlinkhere/" onclick="window.open('http://affiliatelinkhere','newwin');" title="affiliate product's name"><img style="width: XXpx; height: YYpx; border: 0;" src="Path to image" alt="Text Description"></a></p>

    You can change the "p" tags to div tags and style as needed.

    Forcing File Downloads in PHP: http://elouai.com/force-download.php
    Using PHP Headers to Force Download: http://www.ryboe.com/tutorials/php-h...force-download

    Optional in link: Open new window: onclick="window.open (this.href, ''); return false"

  3. #3
    Join Date
    Sep 2013
    Posts
    1
    HI! I have the same problem as boze. Thanks a lot Major Payne, you help me a lot =)

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
  •  
HTML5 Development Center



Recent Articles