Re: drop down menu populated from a directory

From: Date: Mon, 31 May 2004 18:08:51 +0000
Subject: Re: drop down menu populated from a directory
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-187294@lists.php.net to get a copy of this message
"Dustin Krysak" <mailinglists@digitalcollision.com> wrote in message news:8737D427-B32C-11D8-BF29-000A95902366@digitalcollision.com... > ok, I added brackets and made my code to: > > <?php > if ($handle = opendir('../../../mov')) { > while (false !== ($file = readdir($handle))) { > > if ($file != '.' && $file != '..') { > > $fileName = str_replace('.mov', '', $file); > echo '<option value="../../../mov/' . $file . > '">' . > $fileName . '</option>'; > } > } > closedir($handle); > } > ?> > > when viewing my page in a browser, it worked! Now what I am hoping to > do is put this menu on a PHP page, and have a qt movie placeholder and > when this menu is used - replace the placeholder with the selected qt > movie... I am just not sure how to do this. This should be easy. Please post your QT placeholder (HTML) code. Then we can help. Regards, Torsten

« previous php.general (#187294) next »