PDA

View Full Version : Downloading script


wap3
05-05-2003, 09:29 PM
Hi guys I have a script which brings up the download dialog box. Is there a way you can find out if the user pressed 'ok' or 'cancel' ??

Just in case u want to know this is the code in my function which brings up the download box.


$location = $item[location]; }
$file = "../downloads/{$item[location]}";
header ("Content-Type: application/octet-stream");
header ("Content-Disposition: attachment; filename=$item[location]");
header ("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($file));
readfile($file);


:thumbsup: