i have the following page called test.php with the code:
<?
if ($_GET['poza'] == 1){
$poza = "test.jpg";
header('Content-type: image/jpeg');
$big = imagecreatefromjpeg($poza);
header('Content-Disposition: attachment; filename="'.time().'.jpg"');
imagejpeg($big);
imagedestroy($big);
exit;
}
?>
<a href="?poza=1">click for download</a>
<a href="http://www.yahoo.com/">yahoo</a>
The code works ok... but if I click on "click for download" save the photo then I click the "yahoo" link in the address bar the link will remain http://localhost/test.php but I am on http://www.yahoo.com/ browsing it without any problem. It's appears that somehow it will browse under an invisible frame!
Any idea why?
thanks!