Re: drop down menu populated from a directory

From: Date: Tue, 01 Jun 2004 12:25:48 +0000
Subject: Re: drop down menu populated from a directory
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-187338@lists.php.net to get a copy of this message
"Dustin Krysak" <mailinglists@digitalcollision.com> wrote in message news:96B52152-B378-11D8-8115-000A95902366@digitalcollision.com... > Ok - here is the relevant Quicktime code: > > <!-- START QUICKTIME CONTENT --> > <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" > width="320" height="256" > > codebase="http://www.apple.com/qtactivex/qtplugin.cab"> > <param name="autoplay" value="true"> > <param name="controller" value="true"> > <param name="pluginspage" > > value="http://www.apple.com/quicktime/download/indext.html"> > <param name="target" value="myself"> > <param name="type" value="video/quicktime"> > <param name="src" value="../../../mov/THElostART.mov"> > <embed src="../../../mov/THElostART.mov" width="320" > height="256" > autoplay="true" controller="true" border="0" > > pluginspage="http://www.apple.com/quicktime/download/indext.html" > target="myself"></embed> > </object> > <!-- END QUICKTIME CONTENT --> > > Now I figure - getting the file name in there would be pretty easy (for > the most part), but the thing is getting the dimensions of the movie in > there... as it is possible that not all movies are the same dimensions. > I am hoping to have just the one PHP that will change dynamically for > the QT content - I would like to avoid having a php or html file for > each QT movie. > > d > > PS - please CC me directly as I am subscribed in digest mode.. thanks > much! Put an if check around your QT placeholder code: if (isset($_POST['nameOfYourSelectBox'])) { // placeholder code } Set your embed src-tag to: src="../../../mov/<?= $_POST['nameOfYourSelectBox']; ?>" So if you submit your select box the selected movie should be shown. Maybe you can omit the width and height attributes. Regards, Torsten

« previous php.general (#187338) next »