Hi guys,
I have a table which displays files stored on my server. It has check boxes next to each file. The idea is that I can use these check boxes combined with a drop down list to either move the files, delete the files, or download them.
Moving and Deleting is easy, but I’m a bit stuck when I want to download multiple files. When I download the files normally, I just have <a> links to a page with eLouai’s download script (http://elouai.com/force-download.php). I kind of want to put this into a for loop but I don’t know if it will work? i.e.
Code:
foreach($downloadfile as $file)
{
header(‘Location: download.php?file=files/$file”);
}
hmmmmmmmm…. although, looking at that that definitely won’t work, as the first one would probably navigate you away from the page… any ideas?
thanks, dave