i'm trying to download images from a link.
an example would be:
when you go to open your mail at whatever service and
you go to download the attachment. when you click on
the attachment to download it, a dialog box appears
asking you where do you want to save that attachment,
and you save that attachment somewhere on your
computer.
would you accomlish this using a php header such as
<?php header("Content-type: image/jpg");?>
how would you use that inside of a link for an image?
would it look something like the example that i have
below or if its not how would i do that?
thanks
<a href="images/kbh8ds_3.jpg" id="<?
header('Content-Type: image/jpeg');
header('Content-Disposition: inline; filename=file.jpg');?>">image1</a>