Posted by Sjoerd on 03/31/06 12:51
Bill Ray wrote:
> I have a script that allows my website to display the contents of a
> folder as links. I want those links to open as their MIME type (MP3
> files) in a small window, displaying that file's name as an H2 tag.
Small window, that implies javascript:
HTML: <a href="URL" onClick="window.open('URL', 'window_name',
'window_options'); return false">
URL would be something like this:
<? $url = "show.php?file=".urlencode($filename); ?>
which expands to:
show.php?file=Britney.mp3
In show.php, there is something like this:
<? echo "<h2>".$_GET['file']."</h2>"; ?>
$_GET['file'] would hold Britney.mp3.
[Back to original message]
|