I have a link that should be takeing my to a page that echo's the contents of my coupon database as a SCV file.
However, when you go to the link it shows says "Internet Explortr cannot download coupons.php?mode=print from www.mywebsite.com.
Internet Explorer was not able to open this internet site. the requested site is either unavailable or cannot be found. Please try again later.
The link is something like this:
https://www.mywebsite.com/coupons.php?mode=print (not sure if the https has anything to do with the problem)
The headders in the file is:
header('Content-Type: application/download; name="Coupons.csv"');
header('Content-Disposition:attachment; filename="Coupons.csv"');
header('Content-Transfer-Encoding: binary');
I dont know much about headers, so i assume the problem is there =)
Thanks