I am trying to force a php download. from here: http://www.iwantanimage.com/animals/animals01.html. Click on the sterling image & the next page offers the options of three formats.
this is my php code
<?php
header('Content-disposition: attachment; filename=sterling02md.jpg');
header('Content-type: image.jpg');
readfile('sterling02md.jpg');
header('Content-disposition: attachment; filename=sterling02lg.jpg');
header('Content-type: image.jpg');
readfile('sterling02lg.jpg');
header('Content-disposition: attachment; filename=sterling.jpg');
header('Content-type: image.jpg');
readfile('sterling02.jpg');
?>
The only image that downloads however is the sterling02md.jpg. How do I fix the code so the user can download the file of choice? thank you