[imp] help with ie 5.5 download issue

Max Kalika max@the-triumvirate.net
Wed, 10 Jan 2001 07:15:12 -0800


Quoting Chuck Hagenbuch <chuck@horde.org>:

> Anyway, I put the script up here:
>   http://chuck.bitgroup.com/wip/download.php
> 
> If you go straight there, it should work fine. However, if you go to:
>   http://chuck.bitgroup.com/wip/link.html

looks like it doesn't like to be submitted to...the following worked for me, 
would it be useful to you?

link.html:

<form action="download.php" method="GET" onsubmit="return false">
<input type="button" value="download" onclick="window.open('download.php')">
</form>

download.php:

<?php 
header('Content-Type: application/x-unknown-image-gif'); 
header('Content-Disposition: attachment; filename=file.gif'); 

readfile('../webapps/horde/graphics/hordebadge.gif');
?> 


--mk23