did it atlast
this goes in html file
Quote:
<form action="downloader.php" method="post">
<button type="submit">Righteous Brothers - Unchained Melody</button>
<input type="hidden" name="fol" value="mp3">
<input type="hidden" name="file" value="Righteous Brothers - Unchained Melody.mp3">
</form>
|
and this is the PHP file
Quote:
<?
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=$file");
if (!readfile($fol."\\".$file))
?>
|
not too neat but heck...its my 1st script