this is my code.
<?php
function generate_card($card_number='',$card_price='',$card_expire='',$image_path='',$font_path)
{
$image = imagecreatefrompng($image_path);
$color = imagecolorallocate($image, 255, 255, 0);
imagettftext($image, 15, 0, 200, 40, $color, $font_path, $card_price);
imagettftext($image, 15, 0, 15, 85, $color, $font_path, $card_number);
imagettftext($image, 12, 0, 145, 155, $color, $font_path, $card_expire);
header('Content-type:image/png');
imagepng($image);
imagedestroy($image);
}
generate_card('1234 5678 9101 1121','$200','12/13','card.png','verdana.ttf');
?>
I create gift cards for visas, an image is also created and displayed on the page. But my problem is when I want to save this image in Mozilla, it gives "page_name.png", and in IE it gives me "Untitled". How can I give my name, for example, "visa_gift_01.png" when saving.