You are here: Re: Popups from links « PHP Programming Language « IT news, forums, messages
Re: Popups from links

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация